Jquery and Interface
Jquery and Interface
May 29The Jquery authors as well as other plugin writers virtually took out the need for other libraries, with a all in one package and a great support site. Having worked with Dojo, Mochikit, Prototype, Sarissa, Jquery feels much different.
[tags]jquery, development [/tags]
 The code feels much lighter and easier to manouvre around. Its quiet intuitive as most methods follow a simple pattern.
 The start is usually “$” followed by a “period” and then the method name, depending on what you are doing the “$” sign could be using a selector to identify whom to impact. The nesting is quiet intuitive and you never get confused. The “this” keyword makes a relevant comeback as “$(this)” and the CSS selectors are used remarkably on the DOM. Consider catching every “P” element with a class of “.findme” and doing something with it.
$("P > .findme").each
(
function()
{
// Do Something
}
);
Compare this with Javascript, and compare your ordeal if there are two classes on the same element!
for(i=0;i <= paragraphelements.length)
{
if(paragraphElements[i].className=="findme")
{
// Do Something}
};
};
 Having coded in Javascript for more than 5 years now, I find Jquery’s syntax is enjoyable as well as crisp. Stay tuned for my experience with animation libraries in Jquery, SIFR and much more.
DHTML is back!