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="" return validateForm(this); }">
<html:submit = true;">validate</html:submit>
<html:submit = false;">don't validate</html:submit>
</html:form>
Marc Demlenne <[EMAIL PROTECTED]>
07/13/2005 11:30 AM
|
|
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]