Mon June 17 2024
Learn  |  Reference  |  Code Base  |  Solutions  |  Freelancing  |  Tips & Tricks  |  Downloads  |  Reviews  |  Affiliate  |  Make a Donation  |  Home
Ajax Dojo Tutorial
Dojo is a great framework for developing ajax based applications. Dojo is selected by Struts 2 for providing ajax support in applications. Dojo is one of the most powerful language for constructing rich internet applications.

Dojo is based on JavaScript and HTML, so its easy to learn. You can learn Dojo very fast and start developing your next highly interactive web applications.

What is Dojo?
Dojo is JavaScript framework released as open source software. This JavaScript toolkit provides many components to develop rich internet applications. You can use Dojo toolkit to develop dynamic web applications. Dojo toolkit will put life in your web application and turn it into highly interactive application.
  1. Dojo offers many widgets, utilities and ajax libraries to develop your application.
  2. Dojo is released under BSD or AFL license.
  3. Dojo is free and can be used to develop free or commercial application.
Features of Dojo
  1. Dojo is based on HTML and JavaScript, so its easy for the developers to learn it fast.
  2. There is no requirement of learning new programming language. Just HTML and JavaScript knowledge if sufficient.
  3. Dojo provides higher abstraction layer to the programmer. So, it helps the programmers to develop powerful functions very easily.
  4. Dojo has already invented the wheels for the programmers and now programmers just have to use the Dojo API into their application
Dojo Framework Components
Below listed are some of the common Dojo Framework components:
  • DOJO Tree
  • DOJO Button
  • DOJO Calendar control
  • DOJO Grid
  • DOJO List box
Benefits of Dojo Framework
Dojo toolkit provides many widgets to develop the UI for web applications. Dojo is one of the robust ajax framework that can be used to develop enterprise grade application.

Following are the benefits of Dojo.
  1. Associative arrays
  2. Loosely typed variables
  3. Regular expressions
  4. Objects and classes
  5. Highly evolved date, math, and string libraries
  6. W3C DOM support in the Dojo
Disadvantages of Dojo
Following are the Disadvantages of Dojo:
  1. Developer depends on the browser support for the Dojo
  2. There is no way to hide the Dojo code in case of commercial application
Installing Dojo
Now let us discuss how to install Dojo. In this section we will learn how to download and install Dojo in your web application. You can easily add Dojo support into your existing application.

Downloading Dojo
You can download the latest version of Dojo from its official site The current version ofDojo is 1.3.2. It is available as Dojo Base 1.3.2 (28K gzipped) and Dojo Toolkit 1.3.2: Dojo + Dijit + DojoX versions for download.

Now choose the directory in your computer where you want to install the Dojo for this tutorial. Let's assume that the directory is c:\mydojo. Now move the downloaded file into the "c:\mydojo" directory and unzip it using WinZip tool or winrar tool. You will get a new directory called "dojo-release-1.3.2". Here is the screen shot from my computer:

Now you ready to start the development.

Installing Dojo into existing application
Installing Dojo into existing application is also a very easy task. You have to just copy the directory "dojo-release-1.1.1" into your existing project. You can rename the directory "dojo-release-1.1.1" to dojo for easy programming.