OZONE Asylum
Forums
DHTML/Javascript
Input Field Text Selection
This page's ID:
30584
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Karl, This is not an easy problem to solve. For example, if the user enters 1 in the MM field are they entering a 1 for January or is it the first digit of 10, 11, or 12? You can write JavaScript code to filter the input and make fairly intelligent guesses about what the user wants, but you will always be better off letting the user do more and the computer do less in ambiguous situations. Start by anaylizing all the possible input patterns for each field and write some simple checks for the boundary conditions. Then you can start adding more intelligence to the filter. . -- not necessarily stoned... just beautiful. [url=http://www.hyperbole-software.com/] [img]http://www.hyperbole-software.com/ozone/hyperbole-88x33.gif[/img] [/url] [small](Edited by [url=http://www.ozoneasylum.com/user/388]hyperbole[/url] on 10-27-2008 21:50)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »