| Author |
Why woud you use jQuery
|
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
What cool features did you guys find in jQuery which you can not do using JavaScript?
Thanks.
|
Be Humble... Be Nice.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
There is nothing that you can do with jQuery that you cannot do with JavaScript yourself. After all, jQuery is written in JavaScript so it can't do anything "magic".
But the point of jQuery, and other JavaScript libraries, is that someone has already done the work for you to make JavaScript easier to write.
There are many many reasons to use a library like jQuery, but if I had to pick just one it'd be how easy it makes it to deal with usually problematic areas like event handling and Ajax, and all without having to worry about the ridiculous cross-browser issues.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Zaeed McColin
Ranch Hand
Joined: Jan 13, 2009
Posts: 90
|
|
JQuery is wonderful!
you can do something like wow in jQuery that maybe impossible or hard to make in JavaScript
we also have Ext-js that I don't like that, because it's heavy too lead but has wonderful feature
in fact JQuery is really cool for design and interesting in your page, yes it's cool
PACKT publisher has a book about JQuery, it's really cool and can be useful
when you want do something that you can is hard in JavaScript or impossible, so it's JQuery turn
|
Open source
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
ArAsh Dex wrote:that maybe impossible or hard to make in JavaScript
Again, if something is impossible in JavaScript, jQuery can't do it either. But yes, it makes things that are otherwise difficult much easier to manage.
|
 |
Zaeed McColin
Ranch Hand
Joined: Jan 13, 2009
Posts: 90
|
|
OK, it's true, you said right
But for example we can hide a section (a tag) in JQuery with some effect (such as fade, or scroll or..) but now it's really so hard to do this
so how we can hide a tag as fade it?
you can do it so easy in JQuery so what's in JavaScript? how we can set something like transparency or... in JavaScript?
maybe we can but i never seen before, if we can do it so please tell me a abstract how we should to fade and invisible a tag?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
We're not going to hijack this post with a discussion on how to perform specific actions in JavaScript. If you are interested in how one can (fairly easily) implement hiding, transparency, and even fade effects (a tad more challenging) in JavaScript, please post a separate question to that effect (pun absolutely intended).
And without any disrespect intended, just because you haven't figured out how to do something in a language doesn't make it impossible. It just means you've got more to learn.
jQuery (and all the other JavaScript libraries) are themselves written in JavaScript, so they cannot do anything that can't be done in JavaScript without them. Their advantage is that someone else has already done the work for you and you can concentrate on creating great user interfaces rather than the nuances of the various areas handled by the libraries.
|
 |
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
|
Thanks for replying guys.
|
 |
 |
|
|
subject: Why woud you use jQuery
|
|
|