<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thomas,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Actually -- in IE 5 anyway -- it 
seems that the *last* number doesn't get added.&nbsp; Good choice on the 
pre-filled zeroes, by the way...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Try replacing the (sometimes 
temperamental)&nbsp;onKeyPress event handler with an onChange or onBlur (this 
will trip when the focus passes to anything else).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Peter (still just learning like everybody 
else)</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=TMccoy@city.newport-beach.ca.us 
  href="mailto:TMccoy@city.newport-beach.ca.us">McCoy, Thomas</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:'javascript@LaTech.edu'">'javascript@LaTech.edu'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 27, 2001 4:29 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] I.E.: 1+1=1. Worse 
  yet, Netscape: 1+1 =___</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=442534320-27062001><FONT face=Arial size=2>Many 
  thanks&nbsp;go to&nbsp;<FONT face=Tahoma>Peter Brunone </FONT>for your help, 
  however...</FONT></SPAN></DIV>
  <DIV><SPAN class=442534320-27062001><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=442534320-27062001></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=442534320-27062001><FONT face=Arial size=2>I updated the 
  code, but things still don't "add up"&nbsp; &nbsp;(okay, bad 
  joke).</FONT></SPAN></DIV>
  <DIV><SPAN class=442534320-27062001><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=442534320-27062001><FONT face=Arial size=2>Whichever box 
  I&nbsp;enter a number into first is never added to the total... unless I go 
  back and retype that number once addition has begun.&nbsp; Also, the script 
  seems to be completely ignored by Netscape 4.7.&nbsp; </FONT></SPAN><SPAN 
  class=442534320-27062001><FONT face=Arial size=2>I tried setting an "initial 
  value" of "0" for each form element, hoping that a change from zero would 
  trigger a response from the&nbsp;JavaScript.&nbsp; It did not.&nbsp; 
  </FONT></SPAN><SPAN class=442534320-27062001><SPAN 
  class=442534320-27062001><FONT face=Arial size=2>The newer version of the form 
  can be tested at&nbsp; </FONT></SPAN><SPAN class=442534320-27062001><FONT 
  face=Arial size=2><A 
  href="http://www.city.newport-beach.ca.us/nbpl/literacyform04.htm"><FONT 
  color=#000000>http://www.city.newport-beach.ca.us/nbpl/literacyform04.htm</FONT></A>.&nbsp; 
  Thanks again for your expertise and time!</FONT></SPAN></SPAN></DIV>
  <DIV><SPAN class=442534320-27062001><SPAN class=442534320-27062001><FONT 
  face=Arial size=2></FONT></SPAN></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=442534320-27062001><SPAN class=442534320-27062001><FONT 
  face=Arial size=2></FONT></SPAN></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=442534320-27062001><SPAN class=442534320-27062001><FONT 
  face=Arial size=2>Sincerely,</FONT></SPAN></SPAN></DIV>
  <DIV><SPAN class=442534320-27062001><SPAN class=442534320-27062001><FONT 
  face=Arial size=2>Thomas McCoy (amateur JS 
  programmer)</FONT></SPAN></SPAN></DIV></BLOCKQUOTE></BODY></HTML>