SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    SitePoint Enthusiast codlib's Avatar
    Join Date
    Jan 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Javascript library

    Hi..

    I am planning to develop a javascript library for my learning purpose....
    What are the things which i need to take care... or please suggest me some good article about this.....

    Thanks,
    jans

  2. #2
    SitePoint Addict
    Join Date
    Mar 2007
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why build your own use something like jquery.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  3. #3
    SitePoint Member
    Join Date
    Dec 2007
    Location
    Zurich, Switzerland
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For one you can extend the JQuery framework with your own functions and also you could check out Yahoo's YUI library.
    If you want to learn things from scratch for a better understanding, I suggest you look up things like "name-spacing", "object-orientated", "unobtrusive" and you'll pretty much get all the infos you need to produce clean and extendable Javascript.
    However, if I were you I'd first take a look at JQuery and I'm pretty sure you won't want to look further

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No doubt, JQuery and YUI are two of the greatest libraries out there, but JUNE is also one that you might want to take a look at, IMO.
    Proud member of this community.
    ____________________________

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,871
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    JUNE looks like it could be quite good except for the fact that it will not let you download it to look at it. The JavaScript overlay confirming the copyright conditions blocks the download from starting.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    JUNE looks like it could be quite good except for the fact that it will not let you download it to look at it. The JavaScript overlay confirming the copyright conditions blocks the download from starting.
    Odd that their Webmaster isn't aware of the issue. Did you contact them about it?

  7. #7
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    JUNE looks like it could be quite good except for the fact that it will not let you download it to look at it. The JavaScript overlay confirming the copyright conditions blocks the download from starting.
    That's funny. A javascript bug prevents us from downloading said javascript library. Makes me doubt the quality of the code, somehow.

  8. #8
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works for me...

    But you have to click the "I agree" button from the overlay window in order the download to start...

    I don't see any problems there...
    Proud member of this community.
    ____________________________

  9. #9
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by haiku View Post
    It works for me...
    (Update) ^^ ... on a Windows platform...

    I was quite intrigued about what felgall said and I tried from a Linux machine and guess what... it doesn't work. oh man...

    I have updated the download page and all should work ok now.

    @ kyberfabrikken: it was not a javascript bug. Someone who knows how servers are dealing with some kinds of file types can explain this issue better than me.


    ** thank you very much felgall. I really appreciate it. :-)
    Proud member of this community.
    ____________________________

  10. #10
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,871
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It was actually on a Windows platform where it wasn't working for me. It does work now and I will be taking a look at what the library contains and may write a review.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  11. #11
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was actually on a Windows platform where it wasn't working for me.
    That's weird...I mean it's really weird (because I have tested it on Win XP and Win Vista OS and the download started as soon as I pressed the "I agree" button) . It's good that now it's working :-)

    ...and I will be taking a look at what the library contains and may write a review.
    Thank you, Stephen
    Proud member of this community.
    ____________________________

  12. #12
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I remember Firebug signalled an error, but I didn't investigate it further. I am indeed on a Linux platform, but I doubt that makes a difference. Most likely, it because I use Firefox 3, and you have tested against Firefox 2?

  13. #13
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... btw. I know I can just read the documentation, but it would be nice with a demo-page, that showed each of the widgets in action.

  14. #14
    SitePoint Member Emerick's Avatar
    Join Date
    Sep 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would suggest building your own, i did.

    Make sure you touch on

    - cross-browser event listening, stopping propagation
    - adding and removing class, getElementsByClass
    - create an initialize method that fires your javascript after pageload

  15. #15
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kyberfabrikken View Post
    I remember Firebug signalled an error, but I didn't investigate it further. I am indeed on a Linux platform, but I doubt that makes a difference. Most likely, it because I use Firefox 3, and you have tested against Firefox 2?
    Yes, I didn't tested it in FF 3. That's because now FF3 supports a lot of new features which other browsers don't right now....

    btw. I know I can just read the documentation, but it would be nice with a demo-page, that showed each of the widgets in action.
    But every widget has its own demo page. There is a link "View example" on the documentation page. See for example the Accordion: http://june-js.com/Api_Reference/Wid...Accordion.aspx
    Proud member of this community.
    ____________________________

  16. #16
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by haiku View Post
    But every widget has its own demo page. There is a link "View example" on the documentation page. See for example the Accordion: http://june-js.com/Api_Reference/Wid...Accordion.aspx
    Ah, so it does. I missed that at first glance, but nice to see that it's there.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •