Make sure you you have the return statement in the onsubmit handler.
Otherwise it will always submit the form.

It needs to look like this: onsubmit="return validateFooForm(this)"

If that's not the problem, you may be trying to validate using an
incorrect field name. That's happened to me a few times.

-Andy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 5:50 AM
To: [EMAIL PROTECTED]
Subject: Validator: Unwanted Client side AND Server side validation


Hi,

When using client side validation the form is submitted regardless of
Javascript validation check occuring (After clicking OK on the
Javascript popup warning following an error the form get submitted
anyway). 

I used validation already without this behaviour to occur ... I must be
misconfiguring something but cannot find out what it is. Validation
works as expected Server side.

I am using Struts 1.1 with the bundled Validator together with Scaffold
1_0.

Any idea welcome, Patrick


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to