Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes Dojo validation text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo validation text box" Watch "Dojo validation text box" New topic

Dojo validation text box

vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 60
Hi All,
The link given below shows up a validation text box using DOJO


When you remove the string in the text box and press tab, the focus will be lost in this case and text box will be wrapped with the DOJO specific alert indicating the field is mandatory. However when you try to do the same thing for the second time you get to see a notification indicating the field is mandatory(In other words the msg that you specify with invalidmessage attribute to the text box)

I want to show the notification message and textbox wrapped with DOJO style when the text box loses focus for the first time. This is happening only for mandatory fields whereas other validations like email where I use regex, I was able to get whatever is needed.

I am really in help on this.

I agree. Here's the link:
subject: Dojo validation text box
jQuery in Action, 3rd edition