oliver wrote:
I am trying to use jquery.validate and jquery.form together, following
the example here:
http://jquery.bassistance.de/validate/demo-test/ajaxSubmit-intergration-demo.html
Looking in the validate documentation, I see that submitHandler is
supposed to prevent the default form submit: and it certainly seems to
do so on the example above: but in my case the default submit is still
firing (sending me to the form's action page). That does NOT happen
when I use $(form)ajaxForm() in place of $(form).validate().
I have got a workaround, which is to specifically add a submit event
to the form, returning false to prevent the default action: but it is
not clear to me why I would need to do this when the example above
does not.
That's a bit weird. I'm gonna check the code that should prevent the
submit when a submitHandler is present.
--
Jörn Zaefferer
http://bassistance.de