Dojo now supports modules written in the Asynchronous Module Definition (AMD) format, which makes code easier to author and debug.
These questions and more are answered with this introductory start tutorial.
The dojo/_base/lang resource makes it easy to augment objects and prototypes using lang.mixin, lang.extend, and Mixin when using dojo/_base/declare.
I'm still getting "mm/dd/yyyy" in the input box, which is there until the user manually changes the value.
Since this tutorial hasn't treated database access yet, we will do a simpler example, but hopefully you will see that you can do just about everything with the Custom Validator.
The control allows you to validate both clientside and serverside, where the serverside approach is probably the most powerful. Value, which is the string of the control being validated, for it's length.
In this tutorial we'll explore what's possible and how you can put dojo Config to use in your code. dojo/request is a new API (introduced in Dojo 1.8) for making requests to a server from the client.
The value from the HTML5 field shows and alerts as expected without adjustment after pageload in Safari, Firefox, IE and Opera.
This is of course very powerful, since the possibilities are basically endless.
A common way of using the Custom Validator is when you need to make a database lookup to see if the value is valid.
Please take a look at the contribution guidelines first.
I will keep some pull requests open if I'm not sure whether those libraries are awesome, you could vote for them by adding : 1: to them.