File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes jQuery in Action -- jQuery replaces JavaScript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery in Action -- jQuery replaces JavaScript?" Watch "jQuery in Action -- jQuery replaces JavaScript?" New topic
Author

jQuery in Action -- jQuery replaces JavaScript?

Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Hi Bear,

It may sound stupid. I have read that jQuery runs on top of JavaScript or based on JavaScript. But my question is that to what extent the developers might use the plain JavaScript? If jQuery is a superset of JavaScript, it should ideally be replacing it. Right?


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

jQuery is written in JavaScript. It does indeed replace the need to write pure JavaScript in a lot of cases but I don't see jQuery as a complete replacement.


GenRocket - Experts at Building Test Data
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
jQuery replaces enhances JavaScript?

Eric
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Thats great. Thank you Gregg and Eric!

I guess the same may go with CSS also right. As jQuery provides even more good animations or visual effects to the UI components. Or the rule does NOT hold good for CSS?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Raghavan Muthu wrote:Or the rule does NOT hold good for CSS?


Not really.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61603
    
  67

jQuery in no way replaces CSS. It makes it easier to manipulate at run-time, but CSS, like JavaScript, is alive and well when using jQuery.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Bear Bibeault wrote:It makes it easier to manipulate at run-time, but CSS, like JavaScript, is alive and well when using jQuery.


Thank you Bear.

Does the statement "easier to manipulate at run-time" means that the CSS attributes (like selectors etc.,) can be chosen at runtime? If so, it would be really a gift to the developers!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61603
    
  67

Yes, CSS properties are easy to manipulate. See the .css() method.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Thats great. Thanks Bear
 
jQuery in Action, 2nd edition
 
subject: jQuery in Action -- jQuery replaces JavaScript?