SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    Ian
    SitePoint Community Guest

    jQuery: Easy JavaScript for Designers

    Notice: This is a discussion thread for comments about the SitePoint article, jQuery: Easy JavaScript for Designers.
    __________

    Brilliant! Just what I needed to read to convince myself to start looking into jQuery.

    Thanks!

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Member
    Join Date
    May 2005
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Jörn Zaefferer
    SitePoint Community Guest
    It maybe worth mentioning that your first example is not quite equivalent to the jQuery counterpart:

    For one, jQuery doesn't check for the existence of required DOM functionality, eg. getElementsByTagName.

    The other and more important difference: Assinging your function to window.onload kills anything else bound to that. jQuery queues all event handlers, like load and ready, therefore you can load different scripts that all use jQuery without having one interfere with the others.

  5. #5
    Fedmich
    SitePoint Community Guest
    jQuery definitely saves me a lot of time. I used it daily on my web 2.0 apps. Try it yourselves, and you'll see the time it saves you makes special web apps

  6. #6
    SitePoint Wizard Hammer65's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln Nebraska
    Posts
    1,161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Visit my blog
    PHP && Life
    for technology articles and musings.

  7. #7
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think jQuery is far superior to Scriptaculous because it's so much easier to spell :)
    YUI is also a strong library.

  8. #8
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    However, since we'd already decided to include the jQuery library in the page (it's tiny -- about 10kB)
    Are you using an old version? The packed version I downloaded earlier this month (1.2.2) is 29Kb.

    But I'll agree that I'm becoming a fan just recently. Things I've been using it for recently have been striping table rows, adding a class to external links to add an icon, form validation and sliding content in and out on :hover.

  9. #9
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doesn't the packed version take longer to load overall? With the uncompression?

  10. #10
    SitePoint Evangelist Karpie's Avatar
    Join Date
    Jul 2007
    Location
    Perth, Australia
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a big jQuery fan as well. It just makes things a lot easier and a lot simpler for a mostly back-end developer like myself, wh oreally really hates going through all the document.getElementById nonsense (for starters).

    Granted, it's the first Javascript framework I've looked at, but I don't see myself going back.


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
  •