Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo validation text box

 
vShyam Sundar
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
The link given below shows up a validation text box using DOJO

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.

-Shyam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic