Login Register

dijit.form.ValidationTextBox

dijit.form.ValidationTextBox reset is not a function

I'm trying to simply reset a ValidationTextBox to its original state.

http://redesign.dojotoolkit.org/jsdoc/dijit/HEAD/dijit.form.ValidationTe... says that there is a reset method that ValidationTextBox inherits from _FormWidget, but I get "reset is not a function" error when I try to use it. DOM inspection confirms that reset is not a function of the widget. Has anyone else run into this?

I'm using dojo 1.0.2 and the 1.1 release notes give no indication that ValidationTextBox has been changed except to change the template from a table to a div.

ValidationTextBox and regular expressions....Help!

Hi!

I'm having some trouble with the programmatic creation ov a dijit.form.ValidationTextBox:
I'm currently wondering why this doesn't work:

var validationBox = new dijit.form.ValidationTextBox({
        regExp: "[\w]+",
        required: true,
        invalidMessage: "regexp [\w]+ not fulfilled...."
},dojo.byId("tmpTagContainer"));

The problem seems to be the given Regular expression. The source file of the ValidationTextBox states, that the regular expression needs to be a string. The validation of the entered string always fails.

Syndicate content