Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4993 closed defect (worksforme)

ValidationTextBox and regExp

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone:
Component: Dijit - Form Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Doesn't seem that the regExp method works with ValidationTextBox?. Tried zipcode example from the 0.9 book (just cut-n-pasted) and that didn't even work.

The regExpGen works fine.

Change History (3)

comment:1 Changed 12 years ago by Adam Peller

Owner: set to Douglas Hays

comment:2 Changed 12 years ago by Douglas Hays

Resolution: worksforme
Status: newclosed

Just tried on the latest trunk (11342) using FF2/WinXP and it seems to be working.
Here's the example I tried:

<input type="text" name="zip" value="00000"
        dojoType="dijit.form.ValidationTextBox"
        regExp="d{5}"
        required="true"
        invalidMessage="Invalid zip code.">

comment:3 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.