|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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! |
|
|
|
#2 |
|
Guru in training
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2006
Location: Maryland
Posts: 1,834
|
|
|
|
|
|
|
#3 |
|
SitePoint Member
Join Date: May 2005
Posts: 12
|
|
|
|
|
|
|
#4 |
|
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. |
|
|
|
#5 |
|
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
|
|
|
|
#6 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 1,136
|
|
|
|
|
|
|
#7 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#8 | |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2005
Location: Brisbane, QLD
Posts: 4,008
|
Quote:
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 |
|
Guru in training
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2006
Location: Maryland
Posts: 1,834
|
Doesn't the packed version take longer to load overall? With the uncompression?
|
|
|
|
|
|
#10 |
|
SitePoint Addict
![]() ![]() ![]() 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. |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 12:48.









Linear Mode
