Taming the Wild Wild Web

Jul 24 2008   1:53AM GMT

Choosing a Javascript Framework That’s Right for You



Posted by: Jeffrey Olchovy
Javascript, Development, Web development, Web services, Web standards, jQuery, Prototype

Currently, there a quite a few Javascript frameworks available to developers that really simplify the process of adding dynamic functionality to your Web pages. Each has its pros and cons, with the most effective ones making it a breeze to return efficiently wrapped sets of DOM elements with semantically favored selectors. Aside from returning the elements that you plan to add into your pages’ behavior layer, some frameworks provide alliances with effect libraries or offer tons of plugins to create eye-popping animations and transitions to really spice-up your Web site’s user experience.

I personally favor jQuery above all. Authored by John Resig, jQuery provides it’s developers with unparalleled ease of use and functionality. jQuery also is totally unobtrusive and offers the perfect separation of behavior from your structured HTML document. This allows for more than graceful degradation . Rather,  it provides an avenue to ultimate progressive enhancment (a Web standardista’s dream!). Turn to jQuery for everything from collapsible menus, easy AJAX loading and simple form validation - to name a few.

However, when jQuery can’t quite do what I want, or I am having difficulty extending its library or finding the right plugin for my visual effects, I turn to the Prototype/Scriptaculous framework. Prototype is similar to jQuery, however, I rate it as inferior when selecting complex chains of DOM elements. It’s Scriptaculous integration is its greatest attribute, being able to produce things like photograph slideshows, dynamic image galleries and morphing page divisions in less than a handful of code.

I highly recommend utilizing these Javascript frameworks as it will save a developer time and sanity. No matter which you choose, you’ll be scripting like a pro in no time at all.

Comment on this Post


You must be logged-in to post a comment. Log-in/Register