JQuery To The Rescue
With a flood of JavaScript libraries hitting the web scene, I fear that a gap is being created between JS libraries, and how the libraries themselves interact with the JS events needed to fuel most libraries into action. Typically the events-part of implementing these complex libraries is left up to the person implementing its usage. It’s been my observation that in this regard the pre-packaged scripting solutions are flawed because of the gap between the libraries themselves and how they actually function as it pertains to events. In other words, most of the popular libraries today don’t have a solution for managing how the features of the library should be implemented in consideration of the event model. Ben Nolan obviously agrees, and that is why he created the Behaviour script. The Behaviour script is an attempt to fill the gap associated with most pre-packaged libraries and the event model that invokes the functionality from the libraries. And while it does a great job, I would prefer a total solution instead of using the Behavior script, in addition to a JS library.
Isn’t there a library solution that has accounted for the gap? For a long time a full featured library was not available. That is, in my opinion, until now. It would seem that JQuery has arrived on the javascript library scene to fill the gap. This self proclaimed “Fun” library just might fit the bill, and appropriately so! JQuery actually supplies a total event solution with the library. It deals with the age old issue (addevent();) of manipulating the DOM with multiple events only after the DOM is available. In addition, adding events is built into the library itself. On top of all this the library has a compressed version of the JS code, which saves me time because I don’t have to fix it with JSLint in order to compress it myself. It’s enough to make any client-side code monkey giddy with joy. And did I mention how cool Chainablemethods are!
So in order to demonstrate how simple it is to use JQuery I have setup some examples using Chainablemethods and how one might architect the library in a web page. However, before you jump into my examples you might want to spend some time reading the JQuery Documentation and looking at the tutorial available on the JQuery website.
Make sure to give the very last example a close look. It demonstrates how to use JQuery with functions created outside of the library.

If the mouse pointer changes to a hand when you roll-over an image associated with a story the image upon clicking either links to enlarged version of the image or a website associated with the image.
Good, good stuff. And thank you for including the examples. They are really helpful and put some flesh on what you can do with this nice lil’ library.
Hat’s off to you, my friend.
Yep, jQuery pretty much rocks my world.. I’m currently in the process of removing prototype from a project at work so I can then integrate jQuery. I’ve also marked it for use in the next redesign of freq-dec – whenever that is!
Nice examples page my man, keep spread’n da word…
@Nathan – Glad you like!
@frequency decoder – Go JQuery! With all the free time that you have a guy with you’re skills should write some plug-ins for JQuery. I’m thinking of adding more effects. What do you think?
I’ve been thinking about writing a plug-in but honestly, all the effects etc I will ever need are already included within the distribution (although, I haven’t spotted a drag drop effect – then again, it’s early, I haven’t had my morning coffee and things are still quite blurry so I might have just missed it when checking out the code).