Tutorials

Read more

Using Dojo Back Button and Bookmarks

Ajax applications are sometimes a bit like super models - visually impressive but not always well behaved.
Read the rest of this entry »

Read more

Dojo DTL Basics

In this tutorial I want to show you the basics of using the extremely powerful templating language DTL when writing your own custom widgets. Dijit already comes with a powerful template mechanism dijit._Templated but sometimes you need a bit more flexibility - dojox.dtl is exactly what you need in those cases.
Read the rest of this entry »

Read more

Extending dojo.dnd with a creator function

Following the Dojo philosophy of “build with, not on”, dojo.dnd provides a terrific API for getting the right behaviour for your app, with plenty of extension points and monkeypatching opportunities. Making a creator function for dojo.dnd.Container is the most obvious way to customize dojo.dnd, because it gets called anytime a container or avatar wants to visualize a data item.

Read the rest of this entry »

Read more

Separating Content from Presentation the Dojo Way

One of the cool things about Dojo is the dojo.xhrGet() function. It’s powerful because it makes transparent the browser dependent transports that make AJAX possible. In this cookie, we’re going to explore a simple use case in Dojo to separate content from the presentation of a page. This means that if you want to update some content of a specific portion of a page, you may not want to require the user to ‘refresh’ the entire page to see the new content. Read the rest of this entry »

Read more

dijit.Tree - server fetch on node expansion

Here’s an example of a Tree that pulls data from the server on child node expansion (clicking the “+” next to a node that has children) - dojo 1.1 or better required:
Read the rest of this entry »