- Train of Thoughts - http://trainofthoughts.org/blog -

JavaScript Toolkits

Posted By Ralf S. Engelschall On Tuesday, February 13, 2007 @ 18:10 In Evaluation,JavaScript | 4 Comments

For building the OpenPKG [1]dhtml [2] package, I’ve evaluated “Web 2.0 toolkits”: you know, those reusable JavaScript libraries providing DOM querying and manipulation, on-the-fly XHTML generation, visually rich widgets and animations effects, AJAX for asynchronous background server communication, small JavaScript array and string object extensions and many more.

The available solutions seem to be split into two categories: the large, encyclopaedic and general ones and the small and problem focused ones. Both have their good right to exist, but even one more decision criteria doesn’t make the life easier for those who have to decide what to do. On top of this, not all solutions can be used side-by-side without conflicts. And because some are using a totally different API style, it becomes nasty if one has to program with multiple ones at the same time.

Nevertheless, there are a few more or less matured solutions available. Each with its own pros and cons (which I really don’t want to go into detail here), but mostly all of them are at least worth a look for everyone who seeks for a “Web 2.0 toolkit”:

Sorry, for all of them I personally looked not primarily at their features, but on the approach and implementation ;-) And here they differ also dramatically when it comes to documentation, code modularity and code maturity.

But at least three of them pleased me very much:

  • YUI: YAHOO!’s toolkit is both extensive, fully documented, has a very solid code base and has “just worked” for me on the OpenPKG websites. It certainly isn’t the most extensive or the most elegant one, but IMHO it provides a very rock solid foundation for everybody who needs a JavaScript toolkit for DHTML and Web 2.0 tasks.
  • jQuery: This small library is one of the most cool ones I’ve seen until now. It nicely combines the powerful CSS selector and XPath syntax for querying DOM nodes with the possibility to manipulate those DOM nodes through a fully chainable OO-style API. It allows one to script a solution really concisely. At least for Perl hackers like me who love concise code it was a pleasure to work with it. See the fading text in the bottom left corner on the TrainOfThought.org website for a solution based on jQuery. jQuery is certainly worth a look for the real hackers who wish small and concise solutions. And BTW, there is also a nice Interface Elements plugin for jQuery which provides additional support for UI design.
  • Qooxdoo: This widget toolkit really impressed me both from a visual appearance and completeness point of view. The only thing I disliked was that one cannot “just include the source into your website and work with it” as it (for reasons I partly can understand and accept) requires that one really “builds” an application around it. Qooxdoo is certainly worth a look for those who want to build a full Web 2.0 application with a look & feel of a native one.

But just follow the above links and build your own opinion…


Article printed from Train of Thoughts: http://trainofthoughts.org/blog

URL to article: http://trainofthoughts.org/blog/2007/02/13/javascript-toolkits/

URLs in this post:

[1] OpenPKG : http://openpkg.org/

[2] dhtml: http://www.openpkg.org/go/package/dhtml

[3] Prototype: http://www.prototypejs.org/

[4] Script.aculo.us: http://script.aculo.us/

[5] OpenRico: http://openrico.org/

[6] YAHOO! User Interface (YUI): http://developer.yahoo.net/yui/

[7] DOJO Toolkit: http://dojotoolkit.org/

[8] Kabuki Ajax Toolkit (AjaxTK): http://www.zimbra.com/community/kabuki_ajax_toolkit_download.html

[9] Adobe Spry: http://labs.adobe.com/technologies/spry/

[10] Qooxdoo: http://qooxdoo.org/

[11] MochiKit: http://mochikit.com/

[12] OpenLink AJAX Toolkit (OAT): http://oat.openlinksw.com/

[13] jQuery : http://www.jquery.com/

[14] OpenJSAN: http://openjsan.org/

Copyright © Ralf S. Engelschall, All Rights Reserved.