Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Preset mask for input components

    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.

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •