Re: form submission with image in nn

by "Cyanide _7" <leo7278(at)hotmail.com>

 Date:  Thu, 13 Jan 2000 15:40:21 CST
 To:  ppk(at)xs4all.nl
 Cc:  hwg-languages(at)hwg.org
  todo: View Thread, Original
actually, both browsers give you an extra shortcut, this.form, from within a 
givin form's elements. so this.form.txtHidden.value would be more 
appropriate. especially if another form were to be added before the current 
one. - Cyanide_7


>From: Peter-Paul Koch <ppk(at)xs4all.nl>
>To: pbabcock(at)bgsgroup.com, hwg-languages(at)hwg.org
>Subject: Re: form submission with image in nn
>Date: Thu, 13 Jan 2000 21:01:46 +0100
>
> ><input type=image align=absmiddle src="images/high.gif" border=0 
>height=25
> >width=50 onclick="txtHidden.value='H'" name=imageH>
>
>should be
>
><input type=image align=absmiddle src="images/high.gif" border=0 height=25
>width=50 onclick="document.forms[0].txtHidden.value='H'" name=imageH>
>
>Netscape requires the 'document.forms[0].' bit, while Explorer doesn't.
>
>ppk
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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