You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kiuma <ki...@usa.net> on 2002/10/09 16:02:27 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Submit form

Posted by Eddie Bush <ek...@swbell.net>.
<html:image ... />

Look that up Kiuma ...

kiuma wrote:

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


-- 
Eddie Bush




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Submit form

Posted by kiuma <ki...@usa.net>.
And could you please give it to me LOL :-D !!!
Andrew Hill wrote:

>Yes.
>
>-----Original Message-----
>From: kiuma [mailto:kiuma@usa.net]
>Sent: Wednesday, October 09, 2002 22:02
>To: Struts Users Mailing List
>Subject: 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:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>.
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Submit form

Posted by Andrew Hill <an...@gridnode.com>.
Yes.

-----Original Message-----
From: kiuma [mailto:kiuma@usa.net]
Sent: Wednesday, October 09, 2002 22:02
To: Struts Users Mailing List
Subject: 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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Submit form

Posted by kiuma <ki...@usa.net>.
Thx a lot,
It was exactly what I meant!

Andrew Hill wrote:

>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:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>.
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Submit form

Posted by Andrew Hill <an...@gridnode.com>.
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Submit form

Posted by Miguel Angel Mulero Martinez <mi...@mad.tecsidel.es>.
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>