JavaScript Validation Help

T

TomH

I created an intranet form with JavaScript validation to require a date. The
field works fine if you enter the date using the number keys at the top of
the keyboard. However, when the number pad to the right of the keyboard is
used, it doesn't work. Help! Thanks in advance.
 
K

Kevin Spencer

Define "doesn't work."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
T

TomH

When the number pad is used to enter the date, the field displays numbers in
the correct format, but an error displays telling the user to enter numbers.
If the numbers at the top of the keyboard are used, the form is submitted,
but if the numbers are entered from the number pad on the right of the
keyboard, the error message displays.

Here is the JavaScript used:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function check_date(field){
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var DateTemp = "";
var seperator = "/";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
err = 0;
DateValue = DateField.value;
/* Delete all chars except 0..9 */
for (i = 0; i < DateValue.length; i++) {
if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
DateTemp = DateTemp + DateValue.substr(i,1);
}
}
DateValue = DateTemp;
/* Always change date to 8 digits - string*/
/* if year is entered as 2-digit / always assume 20xx */
if (DateValue.length == 6) {
DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2); }
if (DateValue.length != 8) {
err = 19;}
/* year is wrong if year = 0000 */
year = DateValue.substr(4,4);
if (year == 0) {
err = 20;
}
/* Validation of month*/
month = DateValue.substr(0,2);
if ((month < 1) || (month > 12)) {
err = 21;
}
/* Validation of day*/
day = DateValue.substr(2,2);
if (day < 1) {
err = 22;
}
/* Validation leap-year / february / day */
if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
leap = 1;
}
if ((month == 2) && (leap == 1) && (day > 29)) {
err = 23;
}
if ((month == 2) && (leap != 1) && (day > 28)) {
err = 24;
}
/* Validation of other months */
if ((day > 31) && ((month == "01") || (month == "03") || (month == "05")
|| (month == "07") || (month == "08") || (month == "10") || (month == "12")))
{
err = 25;
}
if ((day > 30) && ((month == "04") || (month == "06") || (month == "09")
|| (month == "11"))) {
err = 26;
}
/* if 00 is entered, no error, deleting the entry */
if ((day == 0) && (month == 0) && (year == 00)) {
err = 0; month = ""; day = ""; year = ""; seperator = "";
}
/* if no error, write the completed date to Input-Field (e.g. 12.13.2001)
*/
if (err == 0) {
DateField.value = month + seperator + day + seperator + year;
}
/* Error-message if err != 0 */
else {
alert("Date is incorrect!");
DateField.select();
DateField.focus();
}
}
// End -->
</script>

Thanks.
 
K

Kevin Spencer

The reason I ask is that the text field can only contain text. It shouldn't
make any difference whether it was typed in by the numbers at the top of
the keyboard or the Number Pad (assuming that the Numlock key is on). Do you
have a URL for us to look at?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
K

Kevin Spencer

How about posting the whole form? I could load it into a browser and check
it out.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
T

TomH

After some troubleshooting, I found that the issue is that for some users the
numbers are "registering" as numbers for any numbers entered (either the
numbers at the top or the numbers on the right). I am going to check for a
few things -- version of IE and compare settings for the browser. Any other
suggestions? Here is the form...

<html>

<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function check_date(field){
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var DateTemp = "";
var seperator = "/";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
err = 0;
DateValue = DateField.value;
/* Delete all chars except 0..9 */
for (i = 0; i < DateValue.length; i++) {
if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
DateTemp = DateTemp + DateValue.substr(i,1);
}
}
DateValue = DateTemp;
/* Always change date to 8 digits - string*/
/* if year is entered as 2-digit / always assume 20xx */
if (DateValue.length == 6) {
DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2); }
if (DateValue.length != 8) {
err = 19;}
/* year is wrong if year = 0000 */
year = DateValue.substr(4,4);
if (year == 0) {
err = 20;
}
/* Validation of month*/
month = DateValue.substr(0,2);
if ((month < 1) || (month > 12)) {
err = 21;
}
/* Validation of day*/
day = DateValue.substr(2,2);
if (day < 1) {
err = 22;
}
/* Validation leap-year / february / day */
if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
leap = 1;
}
if ((month == 2) && (leap == 1) && (day > 29)) {
err = 23;
}
if ((month == 2) && (leap != 1) && (day > 28)) {
err = 24;
}
/* Validation of other months */
if ((day > 31) && ((month == "01") || (month == "03") || (month == "05")
|| (month == "07") || (month == "08") || (month == "10") || (month == "12")))
{
err = 25;
}
if ((day > 30) && ((month == "04") || (month == "06") || (month == "09")
|| (month == "11"))) {
err = 26;
}
/* if 00 is entered, no error, deleting the entry */
if ((day == 0) && (month == 0) && (year == 00)) {
err = 0; month = ""; day = ""; year = ""; seperator = "";
}
/* if no error, write the completed date to Input-Field (e.g. 12.13.2001)
*/
if (err == 0) {
DateField.value = month + seperator + day + seperator + year;
}
/* Error-message if err != 0 */
else {
alert("Date is incorrect!");
DateField.select();
DateField.focus();
}
}
// End -->
</script>

</head>

<body><table><tr><td>
<h2>Docket Form</h2>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="85%"
bgcolor="#EDEBD7">
<tr>
<td width="100%">
</center>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan
--><script Language="JavaScript"><!--
function FrontPage_Form2_Validator(theForm)
{

if (theForm.Event.selectedIndex < 0)
{
alert("Please select one of the \"Event\" options.");
theForm.Event.focus();
return (false);
}

if (theForm.Event.selectedIndex == 0)
{
alert("The first \"Event\" option is not a valid selection. Please
choose one of the other options.");
theForm.Event.focus();
return (false);
}

if (theForm.ClientName.value == "")
{
alert("Please enter a value for the \"ClientName\" field.");
theForm.ClientName.focus();
return (false);
}

if (theForm.ClientName.value.length < 2)
{
alert("Please enter at least 2 characters in the \"ClientName\" field.");
theForm.ClientName.focus();
return (false);
}

if (theForm.MatterName.value == "")
{
alert("Please enter a value for the \"MatterName\" field.");
theForm.MatterName.focus();
return (false);
}

if (theForm.MatterName.value.length < 2)
{
alert("Please enter at least 2 characters in the \"MatterName\" field.");
theForm.MatterName.focus();
return (false);
}

if (theForm.Attorneys.value == "")
{
alert("Please enter a value for the \"Attorneys\" field.");
theForm.Attorneys.focus();
return (false);
}

if (theForm.Attorneys.value.length < 2)
{
alert("Please enter at least 2 characters in the \"Attorneys\" field.");
theForm.Attorneys.focus();
return (false);
}

if (theForm.SubmittedBy.value == "")
{
alert("Please enter a value for the \"SubmittedBy\" field.");
theForm.SubmittedBy.focus();
return (false);
}

if (theForm.SubmittedBy.value.length < 4)
{
alert("Please enter at least 4 characters in the \"SubmittedBy\" field.");
theForm.SubmittedBy.focus();
return (false);
}

var checkOK =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÃÂÃÄÅÆÇÈÉÊËÌÃÃŽÃÃÑÒÓÔÕÖØÙÚÛÜÃÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ \t\r\n\f";
var checkStr = theForm.SubmittedBy.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("Please enter only letter and whitespace characters in the
\"SubmittedBy\" field.");
theForm.SubmittedBy.focus();
return (false);
}

if (theForm.EventType.selectedIndex < 0)
{
alert("Please select one of the \"EventType\" options.");
theForm.EventType.focus();
return (false);
}

if (theForm.EventType.selectedIndex == 0)
{
alert("The first \"EventType\" option is not a valid selection. Please
choose one of the other options.");
theForm.EventType.focus();
return (false);
}

if (theForm.EventDate.value == "")
{
alert("Please enter a value for the \"EventDate\" field.");
theForm.EventDate.focus();
return (false);
}

var checkOK = "0123456789-- /";
var checkStr = theForm.EventTime.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("Please enter only digit and \"- /\" characters in the
\"EventDate\" field.");
theForm.EventTime.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form
method="POST" name="FrontPage_Form2"
action="../_vti_bin/shtml.dll/forms/docket.html" onsubmit="return
FrontPage_Form2_Validator(this)" webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults"
u-file="../_private/docket_results.txt" s-format="HTML/PRE"
s-label-fields="TRUE" b-reverse-chronology="FALSE" s-email-format="HTML/PRE"
b-email-label-fields="TRUE" b-email-replyto-from-field="TRUE"
s-email-replyto="#[email protected]" b-email-subject-from-field="FALSE"
s-email-subject="Docket Event Form" s-date-format="%A %B %d, %Y"
s-time-format="%I:%M %p" s-builtin-fields="Date Time" s-form-fields="Event
ClientName MatterName ClientMatter CaseNumber EventDate EventTime Explanation
Attorneys EventType CookCountyCircuitCourts FederalCourts StateCourtsIL
DownstateIL ForumLocations StateFederalOutsideIL Miscellaneous Address
RoomFloor Judge SubmittedBy " u-confirmation-url="docketConfirmation.htm"
S-Email-Address="(e-mail address removed)" startspan --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan
i-checksum="43374" -->
<p align="left" style="margin-bottom: 0"><b><font
color="#FF0000"><font size="4" face="Tahoma">*
</font>Indicates required fields</font></b></p>
<p align="left" style="margin-bottom: 0"><b>Client
Information</b></p>
<p align="left" style="margin-bottom: 0"><b>
<font size="4" face="Tahoma" color="#FF0000">*</font></b>Is
this a New or Rescheduled Event?
<!--webbot bot="Validation" s-display-name="Event"
b-value-required="TRUE" b-disallow-first-item="TRUE" --><select size="1"
name="Event" tabindex="1">
<option>Choose one</option>
<option>New</option>
<option>Rescheduled</option>
</select></p>
<p align="left" style="margin-bottom: 0"><b>
<font size="4" face="Tahoma"
color="#FF0000">*</font></b>Client
Name:
<!--webbot bot="Validation" s-display-name="ClientName"
s-data-type="String" b-value-required="TRUE" i-minimum-length="2" --><input
type="text" name="ClientName" size="50" tabindex="2"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"><b>
<font size="4" face="Tahoma"
color="#FF0000">*</font></b>Matter
Name:
<!--webbot bot="Validation" s-display-name="MatterName"
s-data-type="String" b-value-required="TRUE" i-minimum-length="2" --><input
type="text" name="MatterName" size="50" tabindex="3"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom:
0">Client/Matter
#:
<input type="text" name="ClientMatter" size="20"
tabindex="4"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<b><font size="4" face="Tahoma"
color="#FF0000">*</font></b>Attorney(s) Initials:
<!--webbot bot="Validation" b-value-required="TRUE"
i-minimum-length="2" --><input type="text" name="Attorneys" size="34"
tabindex="5"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom:
0"><font size="4" face="Tahoma" color="#FF0000"><b>*</b></font>Form
Submittted by:
<!--webbot bot="Validation" s-display-name="SubmittedBy"
s-data-type="String" b-allow-letters="TRUE" b-allow-whitespace="TRUE"
b-value-required="TRUE" i-minimum-length="4" --><input type="text"
name="SubmittedBy" size="20" tabindex="6">
(first and last name)</p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"><b>
<font size="4" face="Tahoma"
color="#FF0000">*</font></b>Event
Type:
<!--webbot bot="Validation" b-value-required="TRUE"
b-disallow-first-item="TRUE" --><select size="1" name="EventType"
tabindex="7">
<option value=" ">Choose one</option>
<option value="ARD">Appearance/Return Day</option>
<option value="CA">Court Appearance</option>
<option value="CL">Closing</option>
<option value="COR">Correspondence</option>
<option value="W30">Pro-Se Hearing</option>
</select></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<fieldset style="border: 1px solid #003366; padding: 2">
<legend><b>Jurisdiction</b></legend>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">State
Courts and Offices in Illinois:<br>
<select size="1" name="StateCourtsIL" tabindex="10">
<option value=" ">Choose One</option>
<option value="ISC">Illinois Supreme Court</option>
<option value="AP1">Appellate Court 1st District
Chicago</option>
<option value="AP2">Appellate Court 2nd District
Elgin</option>
<option value="AP3">Appellate Court 3rd District
Ottawa</option>
<option value="AP4">Appellate Court 4th District
Sprgfld</option>
<option value="AP5">Appellate Court 5th District Mt
Vern</option>
<option value="CCI">Court of Claims of Illinois</option>
<option value="DCFS">Dept of Children & Family
Services</option>
<option value="DOL">Department of Labor</option>
<option value="ICCC">Illinois Commerce Commission,
Chicago</option>
<option value="ICCS">Illinois Commerce Commission,
Sprngfld</option>
<option value="HRC">Illinois Human Rights Commission</option>
<option value="IDHR">Illinois Department of Human
Rights</option>
<option value="IIC">Illinois Industrial Commission</option>
</select></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
Downstate Illinois County Courts:<br>
<select size="1" name="DownstateIL" tabindex="11">
<option value=" ">Choose One</option>
<option value="1ALX">1st Jud. Cir. Alexander County,
Cairo</option>
<option value="1JAK">1st Jud. Cir. Jackson County,
Murphysboro</option>
<option value="1JON">1st Jud. Cir. Johnson County,
Vienna</option>
<option value="1MAS">1st Jud. Cir. Massac Conty,
Metropolis</option>
<option value="1POPE">1st Jud. Cir. Pope County, Mound
City</option>
<option value="1PUL">1st Jud. Cir. Pulaski County, Mound
City</option>
<option value="1SAL">1st Jud. Cir. Saline County,
Harrisburg</option>
<option value="1UN">1st Jud. Cir. Union County,
Jonesboro</option>
<option value="1WIL">1st Jud. Cir. Williamson County,
Marion</option>
<option value="2CRW">2nd Jud. Cir. Crawford County,
Robinson</option>
<option value="2EDW">2nd Jud. Cir. Edwards County,
Albion</option>
<option value="2FRNK">2nd Jud. Cir. Franklin County,
Benton</option>
<option value="2GAL">2nd Jud. Cir. Gallatin County,
Shawneetown</option>
<option value="2HAM">2nd Jud. Cir. Hamilton county,
McLeansboro</option>
<option value="2HAR">2nd Jud. Cir. Hardin County,
Elizabethtown</option>
<option value="2JEF">2nd Jud. Cir. Jefferson County, Mt.
Vernon</option>
<option value="2LAW">2nd Jud. Cir. Lawrence County,
Lawrenceville</option>
<option value="2RL">2nd Jud. Cir. Richland County,
Olney</option>
<option value="2WAB">2nd Jud. Cir. Wabash County, Mt.
Carmel</option>
<option value="2WHT">2nd Jud. Cir. White County,
Carmi</option>
<option value="2WYN">2nd Jud. Cir. Wayne County,
Fairfield</option>
<option value="3BND">3rd Jud. Cir. Bond County,
Greenville</option>
<option value="3MAD">3rd Jud. Cir. Madison County,
Edwardsville</option>
<option value="4CHR">4th Jud. Cir. Christian County,
Taylorville</option>
<option value="4CLAY">4th Jud. Cir. Clay County,
Louisville</option>
<option value="4CLN">4th Jud. Cir. Clinton County,
Carlyle</option>
<option value="4EFF">4th Jud. Cir. Effingham County,
Effingham</option>
<option value="4FAY">4th Jud. Cir. Fayette County,
Vandalla</option>
<option value="4JAS">4th Jud. Cir. Jasper County,
Newton</option>
<option value="4MAR">4th Jud. Cir. Marion County,
Salem</option>
<option value="4MON">4th Jud. Cir. Montgomery County,
Hillsboro</option>
<option value="4SHLB">4th Jud. Cir. Shelby County,
Shlbyville</option>
<option value="5CLRK">5th Jud. Cir. Clark County,
Marshall</option>
<option value="5COLS">5th Jud. Cir. Coles County,
Charleston</option>
<option value="5CUMB">5th Jud. Cir. Cumberland County,
Toledo</option>
<option value="5EDGR">5th Jud. Cir. Edgar County,
Paris</option>
<option value="5VERM">5th Jud. Cir. Vermilion County,
Danville</option>
<option value="6CHAM">6th Jud. Cir. Champaign County,
Urbana</option>
<option value="6DOUG">6th Jud. Cir. Douglas County,
Tuscola</option>
<option value="6DW">6th Jud. Cir. De Witt County,
Clinton</option>
<option value="6MACN">6th Jud. Cir. Macon County,
Decatur</option>
<option value="6MOUL">6th Jud. Cir. Moultie County,
Sullivan</option>
<option value="6PIAT">6th Jud. Cir. Piatt Conty,
Monticello</option>
<option value="7GRN">7th Jud. Cir. Green Conty,
Carrolton</option>
<option value="7JER">7th Jud. Cir. Jersey County,
Jerseyville</option>
<option value="7MAC">7th Jud. Cir. Macoupin County,
Carlinville</option>
<option value="7MORG">7th Jud. Cir. Morgan County,
Jacksonville</option>
<option value="7SANG">7th Jud. Cir. Sangamon County,
Springfield</option>
<option value="7SCOT">7th Jud. Cir. Scott County,
Winchester</option>
<option value="8ADMS">8th Jud. Cir. Adams County,
Quincy</option>
<option value="8BRWN">8th Jud. Cir. Brown County, Mt.
Sterling</option>
<option value="8CALH">8th Jud. Cir. Calhoun County,
Hardin</option>
<option value="8CASS">8th Jud. Cir. Cass County,
Virginia</option>
<option value="8MASN">8th Jud. Cir. Mason County,
Havana</option>
<option value="8MEN">8th Jud. Cir. Menard County,
Petersburg</option>
<option value="8PIKE">8th Jud. Cir. Pike County,
Pittsfield</option>
<option value="8SCHL">8th Jud. Cir. Schuyler County,
Rushville</option>
<option value="9FUL">9th Jud. Cir. Fulton County,
Lewistown</option>
<option value="9HAN">9th Jud. Cir. Hancock County,
Carthage</option>
<option value="9HEND">9th Jud. Cir. Henderson County,
Oquawka</option>
<option value="9KNOX">9th Jud. Cir. Knox County,
Galesburg</option>
<option value="9MCDN">9th Jud. Cir. McDonough County,
Macomb</option>
<option value="9WARN">9th Jud. Cir. Warren County,
Monmouth</option>
<option value="10MAR">10th Jud. Cir. Marshall County,
Lacon</option>
<option value="10PER">10th Jud. Cir. Peoria County,
Peoria</option>
<option value="10PUT">10th Jud. Cir. Putnam County,
Hennepin</option>
<option value="10STK">10th Jud. Cir. Stark County,
Toulon</option>
<option value="10TAZ">10th Jud. Cir. Tazwell County,
Pekin</option>
<option value="11FRD">11th Jud. Cir. Ford County,
Paxton</option>
<option value="11LIV">11th Jud. Cir. Livingston County,
Pontiac</option>
<option value="11LOG">11th Jud. Cir. Logan County,
Lincoln</option>
<option value="11MCL">11th Jud. Cir. McLean County,
Bloomington</option>
<option value="11WOD">11th Jud. Cir. Woodford County,
Eureka</option>
<option value="12WL">12th Jud. Cir. Will County,
Joliet</option>
<option value="13BUR">13th Jud. Cir. Bureau County,
Princeton</option>
<option value="13GRD">13th Jud. Cir. Grundy County,
Morris</option>
<option value="13LS">13th Jud. Cir. LaSalle County,
Ottawa</option>
<option value="14HNR">14th Jud. Cir. Henry County,
Cambridge</option>
<option value="14MER">14th Jud. Cir. Mercer County,
Aledo</option>
<option value="14RI">14th Jud. Cir. Rock Island County, Rock
Island</option>
<option value="14WHT">14th Jud. Cir. Whiteside County,
Morrison</option>
<option value="15CAR">15th Jud. Cir. Carroll County, Mt.
Carroll</option>
</select><br>
</p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">State
and Federal Courts Outside Illinois:<br>
<select size="1" name="StateFederalOutsideIL" tabindex="13">
<option value=" ">Choose one</option>
<option value="CCSCM">Cir. Ct. Saginaw County Mich.</option>
<option value="LCWI">Cir. Ct. LaCrosse County, WI</option>
<option value="LNCW">Cir. Ct. Lincoln County, WI</option>
</select></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
Miscellaneous<br>
<select size="1" name="Miscellaneous" tabindex="14">
<option value=" ">Choose One</option>
<option value="AAA">American Arbitration Assoc.</option>
<option value="BAR">American Bar Assoc.</option>
</select></p>
</fieldset><p align="left" style="margin-top: 0;
margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"><b>
<font size="4" face="Tahoma"
color="#FF0000">*</font></b>Event
Date:
<!--webbot bot="Validation" s-display-name="EventDate"
s-data-type="String" b-value-required="TRUE" --><input type="text"
name="EventDate" size="15" tabindex="15" onblur="check_date(this)"><br>

<font size="2"> (mm/dd/yy)<br>
</font></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">Event
Time:
<!--webbot bot="Validation" s-display-name="EventDate"
s-data-type="String" b-allow-digits="TRUE" s-allow-other-chars="- /"
--><input type="text" name="EventTime" size="15" tabindex="16"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">Judge
(Full Name):
<input type="text" name="Judge" size="25" tabindex="17"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">Case
Number:
<input type="text" name="CaseNumber" size="22"
tabindex="18"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
Room/Floor#:
<input type="text" name="RoomFloor" size="20"
tabindex="19"></p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber5">
<tr>
<td width="23%" valign="top">Address:</td>
<td width="77%">
<textarea rows="4" name="Address" cols="34"
tabindex="20"></textarea></td>
</tr>
</table>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber6" height="58">
<tr>
<td width="23%" valign="top" height="58">Explanation:</td>
<td width="77%" height="58">
<textarea rows="4" name="Explanation" cols="34"
tabindex="21"></textarea></td>
</tr>
</table>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="left" style="margin-top: 0; margin-bottom: 0"> </p>
<center>
<p align="center">
<input type="submit" value="Send" name="Submit" tabindex="22">
<input type="reset" value="Reset" name="Reset" tabindex="23"></p>
</form>
</center>
<p style="margin-bottom: 12">

</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="721" colspan="2">
<!--webbot bot="Include"
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" width="80%" height="100%">
<tr>
<td valign="bottom" align="left" colspan="3">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#CCCCCC" height="10" valign="top"
align="left"><img border="0" src="../images/curvel.gif" width="11"
height="15"></td>
<td height="10" bgcolor="#CCCCCC" align="left"
width="100%"><b>Contact
Docket Team</b></td>
<td bgcolor="#CCCCCC" align="left" valign="top"
height="10"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="1" valign="top" align="left" bgcolor="#CCCCCC">
<img border="0" src="../images/10x10.gif" width="2" height="10">
</td>
<td width="608" valign="top" align="left" bgcolor="#EDEBD7">

</td>

</tr>
<tr>
<td width="111" valign="top" align="left" colspan="3" height="1"
bgcolor="#CCCCCC"><img border="0" src="../images/10x10.gif" width="10"
height="2"></td>
</tr>
</table>
</div>

<!--webbot bot="Include" endspan i-checksum="20989" -->

</td>
</tr>
<tr>
<td width="721" colspan="2"></td>
</tr>
</table>
</div>

<!--msnavigation--></td></tr><!--msnavigation--></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>

<div align="center">
<table border="0" width="660" cellspacing="0" cellpadding="0"
style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="721" valign="top" align="center">
<p align="center"><br>
<img border="0" src="../images/barrulee700.gif" align="center"
width="721" height="10"></p>
<p><font size="1" face="verdana,arial,helvetica"><small>Copyright ©
2000-05 ABC All Rights Reserved</small></font></p>
<p align="center"><font size="1" face="verdana,arial,helvetica">
Click <a href="../browsers.htm">here</a> to read about browsers
supported by this site.</font></td>
</tr>
</table>
</div>

</td></tr><!--msnavigation--></table></body></html>
 
K

Kevin Spencer

After some troubleshooting, I found that the issue is that for some users
the
numbers are "registering" as numbers for any numbers entered (either the
numbers at the top or the numbers on the right). I am going to check for
a
few things -- version of IE and compare settings for the browser. Any
other
suggestions? Here is the form...

I'm not sure what this means, but I did test the form, with my NumLock ON,
and everything worked. Ask your users if their NumLock key is on when they
use the keypad.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top