<html><div style='background-color:'><DIV class=RTE>
<P>Hi Scott,</P>
<P>All I am trying to do, if the value is undefined, is set it to zero, so that it does not break the adding up of the other value. I just cannot seem to catch the undefined status and then set the value to zero.......any ideas.......<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>Scott Reynen <scott@randomchaos.com></I><BR>Reply-To: <I>"\[JavaScript List\]" <javascript@LaTech.edu></I><BR>To: <I>"\[JavaScript List\]" <javascript@LaTech.edu></I><BR>Subject: <I>Re: [Javascript] Adding values in input boxes</I><BR>Date: <I>Thu, 1 Jun 2006 08:52:36 -0500</I><BR>>On Jun 1, 2006, at 8:41 AM, Alan Easton wrote:<BR>><BR>>>I simply want to be able to add up the 3 boxes when any of them <BR>>>change, but also catch when nothing has been entered.i.e. when the <BR>>>value is undefined.<BR>><BR>>What do you want to happen when you catch undefined values? I do <BR>>this in an auto-adding page:<BR>><BR>>valueOne = parseFloat( inputField.value );<BR>>if ( isNaN( valueOne ) ) valueOne =
0;<BR>><BR>>Peace,<BR>>Scott<BR>><BR>>_______________________________________________<BR>>Javascript mailing list<BR>>Javascript@LaTech.edu<BR>>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></FONT></BLOCKQUOTE></div></html>