Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why woud you use jQuery

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What cool features did you guys find in jQuery which you can not do using JavaScript?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic