Read more

Appropriately styling the drag handles

When using drag handles, there is a need to notify the user where the handle is. It is custom that an element that can be dragged notifies it by changing the cursor once the cursor is over the element. Usually, the cursor in use for such notification is the move cursor. Read the rest of this entry »

Read more

Modifying the dragability of nodes along a widget’s dom tree

Dragging and dropping seems like a simple user task - you go with the cursor to an element that supports this behavior, press the mouse, move it and release the mouse button and the element that you selected is now located in a new place.

Read the rest of this entry »

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

A simple DOH test fixture

To make unit test writing a useful and painless exercise, you need efficiency and repeatability. In this cookie I’ll introduce a simple test fixture class for use with Dojo’s unit test harness (DOH) that will mean less typing for you, and get you thinking about how to structure and write useful unit tests for your javascript.
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 »