...

View Full Version : Preset mask for input components



jariz
10-30-2006, 07:35 PM
Is there anyone that know an easy solution to preset input fields in a form with masks. Text or Numric masks... phone number for instance? Thank.

VortexCortex
10-30-2006, 08:13 PM
What is it that you are trying to do?

phone numbers for instance?

Do you want to provide an input element that will accept and format telephone numbers?

Are there any other types of "masks" that need validation?

I use three methods for validating text input elements:

1. per keystroke validation:
The input element is validated every keystroke and invalid keys are ignored.

2. validation onBlur or onChange:
The input element is validated when the element looses keyboard focus.

3. onSubmit validation:
The input element is validated when the user presses submit, and prompted to fix any errors.

Also, the use of server side validation is essential for those without javascript.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum