| | |
|
|
|
Enter data in field automatically as user types |
| message from Zwi2000 on 18 Jul 2004 |
I know this might be too much, but you know how clients are ... they are
asking that while typing a date in a field.
Which is 10 digit long (mm/dd/yyyy). That once they enter the first two
digits the "/" is displayed automatically, then type the next two digits and
the other "/" is entered automatically, finally user enters the last 4
digits.
This would allow them to enter the numbers only, is this possible ?
Z
|
| Craig replied to Zwi2000 on 19 Jul 2004 |
Z,
to do this as they type would probably require some JavaScript - search free
java sites for that
ASP or PHP, you could set the date field server binding behaviour (on the
panel) to determine the format once its been entered
or you could determine the date format inside your ASP/PHP code, but again
only once its been entered
you could put something like this in your code to at least show the desired
format:
<input name="end_date" type="text" class="afBlack_08" id="end_date"
onFocus="if(this.value=='2004-12-30')this.value=''"
onBlur="if(this.value=='')this.value='2004-12-30'" value="2004-12-30"
size="19">
Craig
"Zwi2000" <zwi2000@hotmail.com> wrote in message
news:cdet8e$f0t$1@forums.macromedia.com...
|
| Zwi2000 replied to Craig on 19 Jul 2004 |
yeah, I have been searching, this is ASP and the format is : mm/dd/yyyy
Still nothing yet. The idea is for the user to enter "01" then automatically
get "/", then enter "02" and automatically the other "/" finally user enters
"2004".
If anyone has seen something like this please let us know.
Z
"Craig" <csintheuk@hotmail.com> wrote in message
news:cdfj47$70h$1@forums.macromedia.com...
|
| Laiverd.COM replied to Zwi2000 on 19 Jul 2004 |
Why not choose a solution a see around quite a lot : have three input fields
and automatically jump to the next field. Just my 2 cents.
John
|
| Zwi2000 replied to Laiverd.COM on 19 Jul 2004 |
Many reasons, one being the huge number of date fields in my system, then I
would need something else to display the dates in 3 diferent fields, etc.
"Laiverd.COM" <share_your_knowledge@someserver.com> wrote in message
news:cdg0hh$lpp$1@forums.macromedia.com...
|
|
Archived message: Enter data in field automatically as user types (Macromedia Dreamweaver Web Design)