Quick Installation

There are three main ways to install Dojo:

  1. Install nothing! Use Dojo from AOL's Content Distribution Network (CDN).
  2. Install the latest release on your server
  3. Install directly from source control

Use Dojo from CDN

This method is quick and painless! You simply load Dojo through <script> tags pointing to the AOL CDN. You don't need to invest any of your own server disk space or resources nor will you need to install Dojo locally in many cases. Instructions are available on using Dojo from the CDN.

All of the Dijit examples in this book load Dojo through this method. You can literally copy and paste any example in Parts 1 and 2 onto your own web server and it will work as-is! In Part 3, where examples are most often code fragments, we'll tell you any modifications needed to run the example on CDN.

Use Dojo from your Own Server

For you traditionalists out there, you can download, install and use Dojo the old fashioned way.

  1. Download the latest build from http://dojotoolkit.org/downloads.
  2. Uncompress the file onto your web server. Assuming you install it under the directory /js, when you're done, the file system should look something like this:
    [inline:dir_list.png]
  3. With your browser, open http://yoursite.com/js/dojo-0.9.0/dijit/themes/themeTester.html You should see a page like this:
    [inline:themeTester.png]

You've got a working Dojo!

Getting the Nightly Build

Finally, for those of you who live on the edge ... you can get the latest, greatest code directly from the Subversion code repository.