struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: Submit form
Date Wed, 09 Oct 2002 14:35:15 GMT
Actually if you use an <html:image> tag (or plain html along the lines of
<input type="image" ...) when clicked the form will be submitted without
need of JavaScript.
If you need to do extra stuff in javascript first you can intercept this in
the onclick event.
Miguels suggestion to use an image in a link is also quite practical (Im
doing this in several places in my current project and it works well) if you
dont mind using JavaScript.

-----Original Message-----
From: Miguel Angel Mulero Martinez
[mailto:miguel-angel.mulero@mad.tecsidel.es]
Sent: Wednesday, October 09, 2002 22:27
To: Struts Users Mailing List
Subject: RE: Submit form


Put the image in a link, and use the onclik  javascript function to do a
real submit of the form.

-----Mensaje original-----
De: kiuma [mailto:kiuma@usa.net]
Enviado el: miercoles, 09 de octubre de 2002 16:02
Para: Struts Users Mailing List
Asunto: Submit form

Hi all,
I was wondering how to submit to a form using an image instead of a abutton.
Do you have the answer ?


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message