Recently Alex Russell and
Neil Roberts from SitePen were here
in Redlands showing us some of the capabilities of
the Dojo toolkit and how it can greatly simplify your life if you’re a
an overview of what Dojo is and what you need to know about it to be successful
What is Dojo?
different ways. Toolkits such as Dojo, YUI,
Prototype, and many others are designed
to abstract away the browser idiosyncrasies so that you don’t have to learn
them all and handle them in your code.
Additionally, there are often several ways to code the same thing using
easier or more efficient ways. Using libraries from a toolkit can reduce the
their development process (Why reinvent things that work?) and to ensure that
the applications you build behave the same in different browsers. For example,
the map zoom and panning animations use Dojo, as does the graphics layer.
Furthermore, the zoom level slider and info windows that you see in your
with Dojo, and the info window is a custom dijit created by ESRI for the ArcGIS
you, but at a minimum you’ll need to use several common functions:
dojo.require() – Similar to the <script> include tag on an HTML page. It
dojo.addOnLoad() – Similar to <body onload=”">. It registers an
initializing block called after the page has finished loading and the dijits
have been initialized.
dojo.connect() – Similar to the Element.addEventListener and
specific events on an Object or element on the page and returns results from a
The function searches and returns the first HTML element with the argument ID.
full Dojo toolkit, which includes buttons, grids, tree views, charts, and other
widgets. The toolkit is divided into three parts:
Core – Essential functions like those listed above
Dijit – Themeable widgets such as trees, menus, and buttons
DojoX- Extension projects in various stages of development, such as graphics,
grids, and charts
How do I get Dojo? Do I have to install it?
tookit version 1.1.0:
Many Dojo users download Dojo and host it themselves, or they reference the
publicly available Dojo hosted on the AOL Content Delivery Network (CDN). When
How do I get help with Dojo?
The Dojo Web site, www.dojotoolkit.org
contains the official Dojo documentation. Documentation may be sparse,
especially for projects in DojoX. Various
books have recently become available that describe working with Dojo in
more detail than you’ll find on the web site. The
Dojo forums and the #dojo chat room on the
IRC server irc.freenode.net are other good ways to get help.
Do the ESRI Web ADFs use Dojo?
At 9.3, ESRI’s .NET Web Application Developer Framework (ADF) contains a
Library and does not use Dojo.
a toolkit and consequently does not use Dojo.