Re: submit dilemma

by "Tom Keatley" <tom(at)piedpiper.com.au>

 Date:  Wed, 1 Nov 2000 09:52:37 +0800
 To:  <hwg-languages(at)hwg.org>
 References:  spb01
  todo: View Thread, Original
Hi all....

A small one....

I am trying to make a textbox on a form zero if it contains a NAN value
after someone has left the textbox ...If it has a value leave it...but if it
has no value leave a zero. The function I am using is below and I am calling
it
with
onchange="makzero(this.value)"


function makzero(q){
if q > 0
makzero = q
else
makzero = 0;
}


This is not working for me (I dont know Javascript very well but this would
work in VB(using the me keyword)

I *obviously* am doing something wrong here and maybe should stick to
something I know better <grin>

I am also trying to make a HIDDEN field refer to another text box on my form
and so far have not been successful

...could someone smile apon this poor soul and put me right? or suggest a
better way?

TIA

Tom Keatley

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.