- From: Igor Clark <igor.clark@forefrontconsulting.co.uk>
- Date: Tue, 5 Sep 2000 10:42:45 -0400 (EDT)
- To: www-talk@w3.org
- Cc: mgandhi@bhartitelesoft.com
Mukul, if you want to do other things with Javascript (for example, form validation) on submitting the form, and you are just giving sample code to describe how you're going about it, then i think it's ok to do what you're trying to do. you might want to try using something like <a href="javascript:go();"><img src="image.gif"></a> in netscape. if this doesn't work you could try using a netscape javascript entity (i guess something like <img src="image.gif" onClick="&{go()};">) which might get round it. nb this won't work in IE. but if it's simply to submit the form, then as al and fish are say there's no need to use javascript in this instance. (unless you particularly want to i suppose -- *duck*) good luck igor. On Tue, 5 Sep 2000, Al Gilman wrote: > At 11:50 PM 2000-09-04 -0700, Fish wrote: > ><snip> > > > >> I have to perform POST only and cannot make this image > >> as a link and do GET operation. > >> > >> Pl reply at mgandhi@bhartitelesoft.com > >> > >> regards > >> -mukul > > > >Why use javascript at all? Just do it using forms: > > > > <FORM METHOD="POST" ACTION="http://server/cgi-script"> > > <INPUT NAME=field1 TYPE=hidden VALUE="value1"> > > <INPUT NAME=field2 TYPE=hidden VALUE="value2"> > > (etc...) > > <INPUT BORDER=0 SRC="image.jpg" TYPE=image> > > </FORM> > > > > Yes. Since you can do it in HTML, you should. > > See Checkpoint 6.3 in > <http://www.w3.org/TR/WAI-WEBCONTENT/#gl-new-technologies>. > > Al > > > > > "Fish" (David B. Trout) > > fish@infidels.org > > > > -- <?> Internet applications consulting & development <e> igor@forefrontconsulting.co.uk <m> +44 (0)79 6715 5849
Received on Tuesday, 5 September 2000 11:42:34 UTC