Apart from the fact that this event needs to get exposed as an option, its also a bug that it isn't triggered by the remote method. Could you file a ticket for this? http://dev.jquery.com/newticket (requires registration)
Thanks! Jörn On Wed, Oct 22, 2008 at 10:47 AM, corretge <[EMAIL PROTECTED]> wrote: > > Hi, I try to show a list of errors in an alert box when the form is > cancelled by jQuery Validator. > > Surfing the web I see that I can use invalid-form.validate like this: > > > $('#bpwcForm').bind('invalid-form.validate', function(e, > validator) > { > var errors = validator.numberOfInvalids(); > alert('ERR ' + errors); > > }); > > > but this function is NOT executed when a submit form is cancelled by a > remote rule. > > any suggestion or work-arround? > > thanks > Àlex Corretgé >