You can supply an error handler to ajaxSubmit.  You can use any of the
options supported by $.ajax since eventually the call is delegated to that
method.

$('#myForm').ajaxSubmit({
    success: function() { alert('hooray!'); },
    error: function() { alert('boo'); }
});

Mike


On Dec 3, 2007 4:47 PM, Josh Nathanson <[EMAIL PROTECTED]> wrote:

>
> Hey all,
>
> In using the AjaxSubmit method of the Forms plugin, I notice that there is
> no error param to allow for the handling of an server side error after
> submission of the form.
>
> How are people handling this?  I was thinking about just using ajaxForm
> and
> then doing the submit using the jquery $.ajax method, which does have
> error
> handling?  How are other people doing this?
>
> -- Josh
>
>
>

Reply via email to