Archive for October, 2009

First Steps

Saturday, October 31st, 2009
This entry is part 3 of 8 in the series Dojo Quick Start Guide

Start by making a skeleton HTML file for use as a basic template for any example:

< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Dojo Toolkit Test Page</title>    
   
        <!– load the dojo toolkit base –>
        <script type="text/javascript" src="js/dojotoolkit/dojo/dojo.js"
            djConfig="parseOnLoad:true, isDebug:true"></script>
   
        <script type="text/javascript">
        /* our JavaScript will go here */
        </script>
   
        <style type="text/css">
        /* our CSS can go here */    
        </style>    
    </head>
    <body><!– this is a Typical WebPage starting point … –>
        <h1 id="testHeading">Dojo Skeleton Page</h1>           
        <div id="contentNode">
            <p>Some Content To Replace</p>
        </div>
    </body>
</html>

(more…)

Getting the Code

Friday, October 30th, 2009
This entry is part 2 of 8 in the series Dojo Quick Start Guide

Download the newest released version of the Dojo Toolkit. Or find a previous release if necessary.

The optimized “built” version is: dojo-release-x.y.z.zip, where x, y, and z are major, minor, and point release numbers, respectively. Or to run the complete suite of tests, you should download the SDK or -src version of Dojo.

Unpack the contents of the archive into a folder (preferably on a web server as this is always a good case for Ajax development). Let’s call it “js/”. You may also name your dojo directory “dojotoolkit” as the examples here will show. If you wish to version Dojo, you may leave it as dojo-release-x.y.z. You should now have a directory structure similar to this:

Dojo Source tree view

(more…)

Why Dojo?

Friday, October 30th, 2009
This entry is part 1 of 8 in the series Dojo Quick Start Guide

The Dojo Toolkit is an open-source JavaScript toolkit useful for building great web applications. It aims to shorten the timespan between idea and implementation by providing an exceptionally well conceived API and set of tools for assisting and fixing the issues experienced in everyday web development. It is lightning fast, extremely robust, and supplies a solid set of tools for DOM manipulation, animations, Ajax, event and keyboard normalization, internationalization (i18n) and accessibility (a11y). Dojo Base is a single, lightweight 27KB entity “across the wire.” Dojo is completely free, liberally licensed (AFL or BSD), and transparently developed by an active group of developers with a strong community presence.

(more…)