Book Image

Learning Dojo

By : Peter Svensson
Book Image

Learning Dojo

By: Peter Svensson

Overview of this book

<p>Dojo is a popular AJAX-specific open-source JavaScript framework for building powerful web applications. It provides a well conceived API and set of tools to assist you and fix the issues experienced in everyday web development. Your project size is no concern while using Dojo. It is the best scalable solution to all your size-related issues.<br /> <br />This book starts by giving you tips and tricks for programming with JavaScript. These tricks will help you with Dojo. With every chapter, you will learn advanced JavaScript techniques. You will learn to leverage Dojo for a clean web application architecture using JSON or XML.</p>
Table of Contents (13 chapters)
Learning Dojo
Credits
About the Author
About the Reviewer
Preface
Free Chapter
1
Introduction to Dojo

Anatomy of a Dojo page


Dojo has one peculiarity compared to most other Ajax frameworks: it needs its entire src/ catalog. That means that you can't (like with many other popular Ajax toolkits or frameworks) just copy the base file, dojo.js, to your web directory, include it, and call it a day you must copy the whole distribution, which is several megabytes.

Dojo consists of a base package, which can be zipped down to just over 25K, and contains a lot of nice features, like the CSS query engine, event management, and so on.

The rest of Dojo's functionality — the Dijit widget system, the visionary and cutting-edge dojox stuff, and everything else, is loaded as required either by the web page or by the components themselves.

When you download a pack of Dojo, you will see a directory structure looking a bit like this:

dojo
dijit
dojox
util

The util directory doesn't contain anything that you'll access from your web page, but has some nifty things. It has build scripts (using Java) that can build...