Michael,

qForms won't do it on a key press, but it will do it onBlur--which is going
to be a much more compatible method.

qForms:
http://www.pengoworks.com/qForms/

-Dan

> -----Original Message-----
> From: Mike Morris [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 1:34 PM
> To: CF-Talk
> Subject: OT: JS Input Mask for textbox
>
>
> Forgive the off topic post, but this is for a cf app, so Ithought
> you folks wouldn't mind.
>
> Has anyone written an input mask in javascript utilizing the
> onkeydown/onkeyup events, so that as the user is typing a value
> into a text box, the value is formatted correctly. For example
> entering a U.S. phone number, as they type in the area code a
> hyphen would appear after the third character, then another hypen
> would appear after the seventh character so as they type the
> number 5555555555, the hyphens would automatically be thrown in
> resulting in 555-555-5555. I'd rather not re-invent the wheel if
> I don't have too, so if there is something like this that has
> already been done, I'd love to see it, or if someone has any
> ideas or can point me in the right direction I'd be most appreciative.
>
> Most everything I've seen so far, validates against a mask after
> the form has been submitted, I'd like to  implement the mask at
> the time the values are being typed in, much like the input mask
> functionality in MS Access or in VB apps.
>
> BTW, if this topic has been here before, and you are annoyed by
> it, please contact me off-list so I can supply you with my home
> phone number so that you can scream invectives at me.
>
> Thanks in advance.
>
> Michael
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to