I figured out the problem...I had some server error handling that was doing a 
redirect, so it was returning status 302 instead of 500...it's working now.

-- Josh


  ----- Original Message ----- 
  From: Mike Alsup 
  To: jquery-en@googlegroups.com 
  Sent: Monday, December 03, 2007 3:27 PM
  Subject: [jQuery] Re: Forms AjaxSubmit: no error handling?


  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