O'Reilly logo

Adding Ajax by Shelley Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dojo

Dojo is an open source effort managed by the Dojo Foundation. Unlike the other libraries, which are maintained by individuals or small groups, the Dojo effort actively encourages additions to the Ajax library from various sources.

The basic Dojo Toolkit is actually quite large and provides a rather complex "pluggable" framework, which allows for the development of Dojo-style widgets—external extensions that don't impact the underlying code. You can download the toolkit at http://dojotoolkit.org.

The released version of the library provides both human-readable source and JavaScript source that has had all extraneous whitespace removed (which makes the library smaller and more or less impossible to read).

Tip

There are several tools and sites that provide JavaScript compression. A good place to start is to simply search for "JavaScript compression" in your favorite search engine.

Dojo has extensive documentation, accessible at http://manual.dojotoolkit.org/index.html. The mechanics of widget-building for Dojo are beyond this book, and I'll refer you to a tutorial on the subject at http://openrico.org/demos/weather_demo.

Like other Ajax libraries, Dojo originally had little documentation. Considering how complex it was, this was more than a small handicap in using the toolkit. Luckily, the project did start a wiki (a site where more than one person can edit the contents) for documentation, though like all wikis, the coverage can be sketchy. Another place to find documentation is at ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required