Dojo ValidationTextBox , invalidMessage is never shown -


when , in case , invalidmessage shown ?? here in case , invalidmessage never shown .

<input         type="text"         id="firstname"         size="20"         dojotype="dijit.form.validationtextbox"         required="true"         propercase="true"         promptmessage="enter first name."         invalidmessage="first name required."         trim="true"   /> 

invalid message appears when content of text box invalid according given regular expression (passed using regexp parameter). in case not pass regexp parameter, content valid.

what want "promptmessage" parameter, appears when text box empty , on focus (null default). think of tooltip tells user do, not error message tells user they've done wrong. message disappears when user starts typing.

all of explained in reference , in api, both of have in browser when programming dojo.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -