Dojo 0.4.2


There are a few ways to use Dojo 0.4.2:

XDomain Ajax Build

To use 0.4.2 from AOL's CDN, just include this script tag in your page:

<script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.2/dojo.js"></script>


There are some modules that require some special setup to use in the xdomain build:

Widget automatic loading

dojo.debugDeep()

dojo.flash

dojo.io.createIFrame()

dojo.rpc.YahooService

dojo.storage

dojo.undo.browser

dojo.widget.GoogleMap

dojo.widget.Editor2, dojo.widget.Editor, dojo.widget.RichText

More information on XDomain builds: Cross Domain Resource Loading. If you use the dojo.js URL above for the xdomain ajax build, you do not need to set any djConfig parameters for it to work. You also do not need a local dojo installation on your server.

Web Build Tool

To build a custom dojo.js with the modules you use the most, use the Web Build Tool.

Save the dojo.js generated from the web build to your server, and for any modules that are not in that dojo.js, the AOL CDN mentioned above will be used to load them. The special setup for specific modules mentioned the XDomain Ajax Build section still apply, even if those modules are in your dojo.js file.

Download Custom Build

Dojo offers some custom builds of Dojo that are not xdomain dojo builds. The code in these builds must reside on your server, and all of the files and directories in the build (except the demos and tests directories) must be on your server. You cannot just take the dojo.js file.

Download Source

You can download the full source code and create your own custom build. The source is offered in:
See the Dojo Book for build instructions.