Opened 13 years ago

Closed 7 years ago

#1107 closed enhancement (patchwelcome)

Feature Request: Pure JS Input Masks

Reported by: theperish@… Owned by: dante
Priority: high Milestone: future
Component: Dijit - Form Version:
Keywords: input masks, input mask Cc:
Blocked By: Blocking:

Description (last modified by dante)

Greetings, any takers on the idea of creating a set of widgets/function(s) to perform pure JS input masking on text fields/areas. This would be a very-nice-to-have tool in the dojo arsenal since IE7 breaks most of the HTC behaviors which provide this functionality, while FF doesn’t support them at all.

Some of the most popular uses would be for date/time, phone/fax, currency, postal code, SS/tax-id and ip address fields. When combined with the existing validation routines, masks such as these would provide a very rich set of common GUI-side tools that would make dojo a must have (or must have it even more now) for many web-app developers.

Change History (8)

comment:1 Changed 13 years ago by dylan

Milestone: 0.6

comment:2 Changed 13 years ago by bill

Component: WidgetsDijit
Resolution: fixed
Status: newclosed

I think the ValidationWidgets? in Dijit 0.9 already let you do this.

comment:3 Changed 12 years ago by guest

Resolution: fixed
Status: closedreopened

Hi,

what about providing some sort of "prompt" characters that underline the masked input. The current validation components only validate according to a given pattern/ mask, but this one is invisible to the end user. It would be a fancy feature if the mask would be visible and provide some sort of assistence to the user.

comment:4 Changed 12 years ago by dante

Milestone: 1.0
Owner: changed from bill to dante
Status: reopenednew

i've been thinking about this for a while.

comment:5 Changed 12 years ago by guest

IBM JWL (JSF Widget Library) shipping with their JSF implementation has this sort of masked inputs (inputHelperAssist). Wouldn't it be nice if the piece of code could be contributed to Dojo? To the IBM contributors in the Dojo team: Do you see this possibility?

comment:6 Changed 12 years ago by dylan

Milestone: 1.3

comment:7 Changed 11 years ago by dante

Description: modified (diff)
Milestone: 1.3future

I'd really like to see this, but not in the cards right now ... it seems we could devise a generic masking system to match against the regexps provided in dojox.validate (or custom ones)

comment:8 Changed 7 years ago by bill

Component: DijitDijit - Form
Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.