You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Jouravlev <jm...@gmail.com> on 2006/06/27 18:20:52 UTC
Re: How I can cancel a submit to use validation?
See here for example: http://www.irt.org/script/155.htm
On 6/27/06, José María Tristán <jt...@sedasolubles.com> wrote:
> Hello:
> I use validation of side of client. i have a function on javascript that is
> launch when the user submit the form. This function can to call the
> validation functions or no. I put bCancel = true but when function
> validateSeguimientoComercialForm(form) is call the submit is launch.
>
> <script language="JavaScript">
> bCancel = new Boolean();
> function validarText(){
> ...
> bCancel=true;
> }
> </script>
>
> <html:form action="/coffeenet/SeguimientoComercial/SeguimientoComercial.do"
> onsubmit="return validateSeguimientoComercialForm(this);">
>
> <html:image src="/CoffeeNet/img/p_ejecutar1.gif" property="submit"
> onclick="bCancel=false;validarText();"></html:image>
>
> Thank you very much
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org