[jQuery] jQuery.Form.js -- no error handling?

[jQuery] jQuery.Form.js -- no error handling?


Hey there folks.
So I have this form that I'm jQueryifying. The prior version of it
did validation on the backend via an ajax request.
The new form uses ajaxSubmit, but I notice that there's no way to
handle errors, so what is happening is that my backend is setting
errors on the validation, but the form is completely unaware of it.
I'd really like to continue using the backend if possible since it's
already there and working. Plus, even if I were to use the validation
plugin, the problem still remains that if the server-side validation
fails, I have no way of handling this. I find it hard to believe this
is an oversight and there's no (decent) way to do it.
I glanced through the Form plugin code and it looks like the
beforeSubmit option is inherently using the beforeSend that you can
access via simply doing $.ajax({ options }); Unfortunately I can't
quite figure out if it is or isn't and if it is how difficult it'd be
to access :error.
So my basic question is: can jQuery.Form.js's ajaxSubmit handle errors
(it'd have to, wouldn't it??) and if so, how do I go about setting
that up? I see nothing in any of the documentation I can find that
mentions it (I've searched the web, and also the jQuery Reference
Guide, which has an entire chapter devoted to forms -- but the only
validation it talks about is via the validation plugin)
Thanks.