[jQuery] Re: [form] Handling "re-ajax'ing" a form after a submission attempt

2009-03-26 Thread berbercarpet
On Thu, Mar 26, 2009 at 12:45 AM, kevin wrote: > I got the ajax form submit working, but on form validation failure I > am passing back the form html within a json object and I re-stuff the > div container with the form html in order to render out form errors. > > My problem is re-intializing th

[jQuery] Re: [form] Handling "re-ajax'ing" a form after a submission attempt

2009-03-26 Thread berbercarpet
ignore that, better: function initSigninForm() { var options = { target: '#mainContent', dataType: 'json', beforeSubmit: showRequest, success: showSignInResponse } $('#mainContent form').ajaxForm(options); } function showSignInResponse(xhr) { if (xh