Ticket #4993 (closed defect: worksforme)

Opened 13 months ago

Last modified 13 months ago

ValidationTextBox and regExp

Reported by: guest Owned by: doughays
Priority: normal Milestone:
Component: Dijit Version: 0.9
Severity: normal Keywords:
Cc:

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

Changed 13 months ago by peller

  • owner set to doughays

Changed 13 months ago by doughays

  • status changed from new to closed
  • resolution set to worksforme

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.">
Note: See TracTickets for help on using tickets.