[thelist] [help] image connected to a submit function w/ javascript embedded

david braun dbraun at innonet.ch
Tue Nov 14 06:56:25 CST 2000

Chris Houston. <chris at phosphors.net> schrieb am 14.11.2000:

> > <form action="formmail.pl" method="POST" onSubmit="javascript:winPop2()">
> > <a href="javascript:document.myform.submit()">
> > <img src="button.gif" height="11" width="123">
> > </a>
> >
> > the code in the action statement will not work...
> >
> > sooo... i am stuck... any ideas, suggestions, examples, links, etc would
> be
> > very helpful...the ultimate goal is to have the form results posted in a
> new
> > pop window once the user clicks on the submit button graphic...

did you try to get the <form action=""> working through a default
<submit>-button? if it works, you could go ahead and set an image to be
a button:

<form formmail.pl" method="POST" onSubmit="javascript:winPop2()">
<input type="image"
    onClick="winPop2(); submit(document.forms.this)"> <!-- (syntax probably incorrect) -->

if it doesn't, you are getting closer to the problems source...

d: )

innonet® ag - webfactory
seeburgstrasse 18
CH 6006 luzern

tel. 041 375 6141
fax 041 375 6181

www.innonet.ch - Das interaktive Unternehmerportal mit täglich neuen Businesschancen. 

More information about the thelist mailing list