Nice trick. So simple I didn't thought about this. Thanks very much ! On 13/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Instead of calling the return validateForm(this) function in the on submit, > you could wrapper the check based on a JavaScript variable. > <javascript> > var validate = true > </javascript> > > <html:form action="xyz.do" onsubmit="if(validate){ return > validateForm(this); }"> > <html:submit onclick="validate = true;">validate</html:submit> > <html:submit onclick="validate = false;">don't validate</html:submit> > </html:form> > > > > Marc Demlenne <[EMAIL PROTECTED]> > > > > > > > > Marc Demlenne <[EMAIL PROTECTED]> > > 07/13/2005 11:30 AM > Please respond to > "Struts Users Mailing List" <user@struts.apache.org> > > > To > Struts Users Mailing List <user@struts.apache.org>, Rafael Taboada > <[EMAIL PROTECTED]> > > > cc > > > > Subject > Re: validation client-side. Problem with 2 submit buttons > > > I DO use struts validator framework ... > > What i want is to to have _only_ one of the submit button to check the > client-side validation > > But I can only decide to call validator or not by form, not by button. > As it is for client side that I have this problem, I can't call it > from my modify method... > > On 13/07/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > > Hi, use Validator framework. > > In this framework u can put code in order to set a client-side > validation > > for each feld. > > In ur modify method, call to ur validate method. > > I hope it can help u > > > > -- > > Rafael Taboada > > Software Engineer > > > > Cell : +511-97753290 > > > > "No creo en el destino pues no me gusta tener la idea de controlar mi > vida" > > > > > > > -- > Marc Demlenne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
-- Marc Demlenne --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]