Ticket #1107 (new enhancement)

Opened 3 years ago

Last modified 8 months ago

Feature Request: Pure JS Input Masks

Reported by: theperish@… Owned by: dante
Priority: normal Milestone: future
Component: Dijit Version:
Severity: normal Keywords: input masks, input mask
Cc:

Description (last modified by dante) (diff)

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

Changed 3 years ago by dylan

  • milestone set to 0.6

Changed 2 years ago by bill

  • status changed from new to closed
  • component changed from Widgets to Dijit
  • resolution set to fixed

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

Changed 19 months ago by guest

  • status changed from closed to reopened
  • resolution deleted

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.

Changed 19 months ago by dante

  • owner changed from bill to dante
  • status changed from reopened to new
  • milestone deleted

i've been thinking about this for a while.

Changed 19 months 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?

Changed 17 months ago by dylan

  • milestone set to 1.3

Changed 8 months ago by dante

  • description modified (diff)
  • milestone changed from 1.3 to future

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)

Note: See TracTickets for help on using tickets.