Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- Date: Wed, 27 Jun 2001 16:42:42 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0316_01C0FF28.2FA2B160
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thomas,
Actually -- in IE 5 anyway -- it seems that the *last* number =
doesn't get added. Good choice on the pre-filled zeroes, by the way...
Try replacing the (sometimes temperamental) onKeyPress event handler =
with an onChange or onBlur (this will trip when the focus passes to =
anything else).
Cheers,
Peter (still just learning like everybody else)
----- Original Message -----=20
From: McCoy, Thomas=20
To: 'javascript@xxxxxxxxxx'=20
Sent: Wednesday, June 27, 2001 4:29 PM
Subject: [Javascript] I.E.: 1+1=3D1. Worse yet, Netscape: 1+1 =3D___
Many thanks go to Peter Brunone for your help, however...
I updated the code, but things still don't "add up" (okay, bad =
joke).
Whichever box I enter a number into first is never added to the =
total... unless I go back and retype that number once addition has =
begun. Also, the script seems to be completely ignored by Netscape 4.7. =
I tried setting an "initial value" of "0" for each form element, hoping =
that a change from zero would trigger a response from the JavaScript. =
It did not. The newer version of the form can be tested at =
http://www.city.newport-beach.ca.us/nbpl/literacyform04.htm. Thanks =
again for your expertise and time!
Sincerely,
Thomas McCoy (amateur JS programmer)
------=_NextPart_000_0316_01C0FF28.2FA2B160
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>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thomas,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Actually -- in IE 5 =
anyway -- it=20
seems that the *last* number doesn't get added. Good choice on the =
pre-filled zeroes, by the way...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Try replacing the =
(sometimes=20
temperamental) onKeyPress event handler with an onChange or onBlur =
(this=20
will trip when the focus passes to anything else).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Cheers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Peter (still just learning like =
everybody=20
else)</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3DTMccoy@xxxxxxxxxxxxxxxxxxxxxxxx=20
href=3D"mailto:TMccoy@xxxxxxxxxxxxxxxxxxxxxxxx">McCoy, Thomas</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Djavascript@xxxxxxxxxx=20
href=3D"mailto:'javascript@xxxxxxxxxx'">'javascript@xxxxxxxxxx'</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, June 27, 2001 =
4:29=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Javascript] I.E.: =
1+1=3D1. Worse=20
yet, Netscape: 1+1 =3D___</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=3D442534320-27062001><FONT face=3DArial size=3D2>Many =
thanks go to <FONT face=3DTahoma>Peter Brunone </FONT>for =
your help,=20
however...</FONT></SPAN></DIV>
<DIV><SPAN class=3D442534320-27062001><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D442534320-27062001></SPAN> </DIV>
<DIV><SPAN class=3D442534320-27062001><FONT face=3DArial size=3D2>I =
updated the=20
code, but things still don't "add up" (okay, bad=20
joke).</FONT></SPAN></DIV>
<DIV><SPAN class=3D442534320-27062001><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D442534320-27062001><FONT face=3DArial =
size=3D2>Whichever box=20
I enter a number into first is never added to the total... unless =
I go=20
back and retype that number once addition has begun. Also, the =
script=20
seems to be completely ignored by Netscape 4.7. =
</FONT></SPAN><SPAN=20
class=3D442534320-27062001><FONT face=3DArial size=3D2>I tried setting =
an "initial=20
value" of "0" for each form element, hoping that a change from zero =
would=20
trigger a response from the JavaScript. It did not. =20
</FONT></SPAN><SPAN class=3D442534320-27062001><SPAN=20
class=3D442534320-27062001><FONT face=3DArial size=3D2>The newer =
version of the form=20
can be tested at </FONT></SPAN><SPAN =
class=3D442534320-27062001><FONT=20
face=3DArial size=3D2><A=20
=
href=3D"http://www.city.newport-beach.ca.us/nbpl/literacyform04.htm"><FON=
T=20
=
color=3D#000000>http://www.city.newport-beach.ca.us/nbpl/literacyform04.h=
tm</FONT></A>. =20
Thanks again for your expertise and time!</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=3D442534320-27062001><SPAN =
class=3D442534320-27062001><FONT=20
face=3DArial size=3D2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=3D442534320-27062001><SPAN =
class=3D442534320-27062001><FONT=20
face=3DArial size=3D2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=3D442534320-27062001><SPAN =
class=3D442534320-27062001><FONT=20
face=3DArial size=3D2>Sincerely,</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=3D442534320-27062001><SPAN =
class=3D442534320-27062001><FONT=20
face=3DArial size=3D2>Thomas McCoy (amateur JS=20
programmer)</FONT></SPAN></SPAN></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0316_01C0FF28.2FA2B160--
- References:
- [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- From: McCoy, Thomas
- [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- Prev by Date: [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- Next by Date: [Javascript] Success: 1+1=2!!!
- Previous by thread: [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- Next by thread: [Javascript] I.E.: 1+1=1. Worse yet, Netscape: 1+1 =___
- Index(es):