My rambles, thoughts, and developments, for everything to do with web development
Categories: Review, 790 wordsSend feedback •After developing all my new wave of plugins using the Scriptaculous library, all the b2evolution team members said I should definitly use jQuery. So of course I ask why, and in all their replies were “Better Syntax, Great Selectors, Chain Concept, Small".
For those of you who do not know what jQuery, Prototype or Scriptaculous are, but are still Javascript developers, then you need to jump aboard the web 2.0 bandwagon, and hopefully this post will be the one to throw you on
jQuery and Prototype are both Javascript Libraries, they offer an amazing OO (Object Orientated) way to interact with the DOM of a XHTML/DHTML page. The DOM is the Document Object Model, and which is basicily the OO structure of your (d/x)html page. So every tag you make, is a Object (or Element/Node) within the DOM. The DOM is useful for Javascript Developers as it lets us do amazing stuff compared to the classical way of innerHTML searching and replacing.
Now the wonders of this, is that these have all been around for a very very long time, so these methods and libraries are fully supported by “all” browsers, and follow “all” the web standards.Now, as anything, there are multiple ways to do things, variety is the spice of life. But that does not mean there isn’t a “better” choice. So in this post I will highlight the factors as to why jQuery is a better choice.
Permalink