You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph> on 2003/07/28 11:59:31 UTC

submitting forms

how do you submit a form using javascript via html:link?
-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



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


RE: submitting forms

Posted by Steve Raeburn <sr...@apache.org>.
Just use a normal link with an onclick handler.

There's no need to use <html:link> because you're not actually linking to
another page but using the link as a convenient way of initiating
Javsacript.

  <a href="" onclick="document.forms[0].submit();return false;">Click
here</a>

Steve

> -----Original Message-----
> From: Frances Aleah Z. de Guzman [mailto:adeguzman@ingenium.com.ph]
> Sent: July 28, 2003 3:00 AM
> To: struts-user@jakarta.apache.org
> Subject: submitting forms
>
>
> how do you submit a form using javascript via html:link?
> --
> Frances Aleah Z. De Guzman
> SA/Programmer
> Ingenium Technology, Inc.
> http://www.ingenium.com.ph
>
> Disclaimer :
> This message is intended only for the named recipient. If you are not the
> intended recipient you are notified that disclosing, copying, distributing
> or taking any action in reliance on the contents of this information is
> strictly prohibited.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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