SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Custom Input Validation

Categories...
Client User Group
Site Design
Language
JavaScript
Product
IE4
Task
Form Enhancement
Technology
Dynamic Content, Intrinsic Controls

Sponsored Links
Developer's Paradise : Inside Technique :
Custom Input Validation
Submission by SiteExperts Staff

Go to the resource:
Custom Input Validation

Add to Assistant

Short Description
Learn how to use the TextRange object to validate your user's input on-the-fly.

Long Description
Learn how to use the TextRange object to validate your user's input on-the-fly.

Author
Scott Isaacs
Submission URL
http://www.SiteExperts.com/tips/contents/ts09/page1.asp
Submission Date
May 16,1998
 

Discussion and Rate this Resource
Overall Rating: 4.4

Everett on May 19, 1999 at 6:42:30 AMRating: 5
Very useful information.  Most of what I'll be doing as part of my real workload will involve validation.  Maybe it doesn't seem as fun as all the bells and whistles that can be added to a web page, but creating perfect validation can have somewhat of the same effect on those who have to deal with it all the time.
Ozmo on May 19, 1999 at 6:25:40 AMRating: 5
Excellent code.  Very well documented.  Walks thru the code so everyone can understand it.  Good job
ft1000ab on Apr 28, 1999 at 9:03:45 AMNo Rating

Sorry about that last message, the new bit of code i suggested, doesnt seem to work properly.

ft1000ab on Apr 28, 1999 at 8:38:54 AMNo Rating

I used this script with one of my forms and it worked well, there is a slight problem, in that you cant enter a new dp in the place of selected text, if there is no dp in the input field. To fix this just replace the last "proper" line of the function with this:

allowDigit = (key=="." && (tempSel.text.length - 1 < el._digits) ||((el._digits>-1)&&(!inputRange.findText("."))))) || !isNaN(key)



To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.