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

Declarative vs Programatic

The Dijit widget system expands on “Core Dojo” by providing rich, accessible and internationalized reusable components. Dojo has always had a custom declarative way of turning vanilla DOM nodes into complex widgets, but this is entirely optional, and likely faster to avoid.

Read the rest of this entry »

Read more

Avoiding Event Bubbling Confusion

There is a minor weirdness about connecting event handlers, especially events that bubble. Here I’ll explain the situation, and present a sound “fix”.

Read the rest of this entry »

Read more

Creating Customized Validation TextBoxes with dojox.validate

I recently came across the need to make a validation textbox that validated US phone numbers. I know there are some JavaScript regular expressions that attempt to validate a phone number - this being the closest one I found to my needs: http://snippets.dzone.com/posts/show/597

Read the rest of this entry »

Read more

Inject Dojo

Sad to say, most of the web doesnt yet use dojo. But that needn’t stop you. Inject Dojo
Read the rest of this entry »