Go Back   SitePoint Forums > Forum Index > Program Your Site > JavaScript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Feb 8, 2008, 02:58   #1
Ian
SitePoint Community Guest
 
Posts: n/a
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!
  Reply With Quote
Old Feb 8, 2008, 07:01   #2
SoulScratch
Guru in training
 
SoulScratch's Avatar
 
Join Date: Apr 2006
Location: Maryland
Posts: 1,834
http://www.456bereastreet.com/archiv...brary_koolaid/
SoulScratch is offline   Reply With Quote
Old Feb 8, 2008, 10:26   #3
sawmac
SitePoint Member
 
Join Date: May 2005
Posts: 12
http://simonwillison.net/2007/Aug/15/jquery/
sawmac is offline   Reply With Quote
Old Feb 9, 2008, 09:56   #4
Jörn Zaefferer
SitePoint Community Guest
 
Posts: n/a
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.
  Reply With Quote
Old Feb 9, 2008, 18:54   #5
Fedmich
SitePoint Community Guest
 
Posts: n/a
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
  Reply With Quote
Old Feb 11, 2008, 10:53   #6
Hammer65
SitePoint Wizard
 
Hammer65's Avatar
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 1,136
Webkit native implementations

http://webkit.org/blog/156/querysele...ryselectorall/
Hammer65 is offline   Reply With Quote
Old Feb 11, 2008, 16:31   #7
cranial-bore
SitePoint Wizard
 
cranial-bore's Avatar
 
Join Date: Jan 2002
Location: Australia
Posts: 2,092
I think jQuery is far superior to Scriptaculous because it's so much easier to spell :)
YUI is also a strong library.
cranial-bore is offline   Reply With Quote
Old Feb 19, 2008, 15:47   #8
Tyssen
SitePoint Wizard
 
Tyssen's Avatar
 
Join Date: Oct 2005
Location: Brisbane, QLD
Posts: 4,008
Quote:
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.
Tyssen is offline   Reply With Quote
Old Feb 19, 2008, 16:10   #9
SoulScratch
Guru in training
 
SoulScratch's Avatar
 
Join Date: Apr 2006
Location: Maryland
Posts: 1,834
Doesn't the packed version take longer to load overall? With the uncompression?
SoulScratch is offline   Reply With Quote
Old Feb 19, 2008, 17:30   #10
Karpie
SitePoint Addict
 
Karpie's Avatar
 
Join Date: Jul 2007
Location: Perth, Australia
Posts: 350
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.
Karpie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 12:48.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved