Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Input Mask for date field


  • From: javascript@xxxxxxxxxx (Peter Brunone)
  • Subject: [Javascript] Input Mask for date field
  • Date: Fri, 27 Jul 2001 22:58:04 -0500

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C116EF.97CF8900
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

RE: [Javascript] Tabbing past the bottom of the windowThere's probably a way
to mask it, but I wouldn't want to try when you can just do three fields.
Besides, validation goes so much more easily this way...
  -----Original Message-----
  From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
Behalf Of Bill Marriott
  Sent: Friday, July 27, 2001 5:27 PM
  To: javascript@xxxxxxxxxx
  Subject: [Javascript] Input Mask for date field


  Hi Everyone,

  This is obviously a newbies question but I can't find any reference to it
anywhere else.
  Can you put an input mask on a form input field for a date. eg. __/__/__
or something so that the user only has to type in the numbers and not the
/'s. (as in MS Access)
  Or is it better to use 3 fields close together , one for each of month,
day and year.

  Thanks

  Bill

------=_NextPart_000_000E_01C116EF.97CF8900
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Javascript] Tabbing past the bottom of the =
window</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D994404803-28072001>There's probably a way to mask it, but I =
wouldn't want=20
to try when you can just do three fields.&nbsp; Besides, validation goes =
so much=20
more easily this way...</SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
javascript-admin@xxxxxxxxxx=20
  [mailto:javascript-admin@xxxxxxxxxx]<B>On Behalf Of </B>Bill=20
  Marriott<BR><B>Sent:</B> Friday, July 27, 2001 5:27 PM<BR><B>To:</B>=20
  javascript@xxxxxxxxxx<BR><B>Subject:</B> [Javascript] Input Mask for =
date=20
  field<BR><BR></DIV></FONT>
  <DIV><FONT face=3DArial size=3D2>Hi Everyone,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>This is obviously a newbies question =
but I can't=20
  find any reference to&nbsp;it anywhere else.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Can you put an input mask on a form =
input field=20
  for a date. eg. __/__/__ or something so that the user only has to =
type in the=20
  numbers and not the /'s.</FONT>&nbsp;<FONT face=3DArial size=3D2>(as =
in MS=20
  Access)</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Or is it better to use 3 fields close =
together ,=20
  one for each of month, day and year.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>Bill</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000E_01C116EF.97CF8900--