Topic awaiting preservation: Form Text Field That Allows Only Author-Specified Input |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Plano, TX |
posted 12-07-2001 15:12
I coded this JavaScript to allow you to specify which characters can be entered into a form text field, so that users will have a harder time entering invalid characters for certain fields (such as entering a letter or hyphen into a phone number field, where only numeric is appropriate). I hope it's helpful. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-07-2001 21:07
IMHO Using regular expressions to validate form input is more efficient... Example can be found here: http://www.max.co.yu/ozone/form_validation.html |
Bipolar (III) Inmate From: USA! USA! USA! |
posted 12-07-2001 23:58
I've built something that handles this. Use the whole things or just the FILTER part of it. It's written using regexes. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-08-2001 00:12 |
Neurotic (0) Inmate Newly admitted |
posted 12-08-2001 00:48
Well ... I think I got to see all your sigs rotating Pet, all of them sweet and high quality. |
Bipolar (III) Inmate From: Europe |
posted 12-17-2001 11:28
dud, max, |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-17-2001 20:01 |