[jQuery] Re: jQuery Form Plugin - after ajaxSubmit call, ajax submitting seems to be disabled
malsup wrote: > > Sorry, I read your first message too quickly. Is 'edit_card_jq' bound > as a submit handler? If so, you should return false form that fn. If > not, could you post a little more code or provide a link? > Here's a link that shows what I'm doing: http://blueapples.org/test/forms/ I figured out what my problem was however. I was trying to call ajaxForm like this: $('#edit_card form').ajaxSubmit('#edit_card', function() { alert('Loaded'); edit_card_jq(); }); Instead of the proper way using an options dictionary: $('#edit_card form').ajaxSubmit({ target: '#edit_card', success: function() { alert('Loaded'); edit_card_jq(); } }); My mistake but I sure with Javascript would have complained about it. Oh well, figured it out! Sorry to waste your time. -- View this message in context: http://www.nabble.com/jQuery-Form-Plugin---after-ajaxSubmit-call%2C-ajax-submitting-seems-to-be-disabled-tp21424793s27240p21437053.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery Form Plugin - after ajaxSubmit call, ajax submitting seems to be disabled
> My handler - as shown previously - rebinds events when the submit succeeds. I > confirmed this, as stated in my message by adding an alert that is shown the > next time I click the submit button, so that isn't it. Sorry, I read your first message too quickly. Is 'edit_card_jq' bound as a submit handler? If so, you should return false form that fn. If not, could you post a little more code or provide a link? Mike
[jQuery] Re: jQuery Form Plugin - after ajaxSubmit call, ajax submitting seems to be disabled
My handler - as shown previously - rebinds events when the submit succeeds. I confirmed this, as stated in my message by adding an alert that is shown the next time I click the submit button, so that isn't it. malsup wrote: > > >> Any ideas why this would happen? > > This is why: > > http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F > > -- View this message in context: http://www.nabble.com/jQuery-Form-Plugin---after-ajaxSubmit-call%2C-ajax-submitting-seems-to-be-disabled-tp21424793s27240p21425844.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery Form Plugin - after ajaxSubmit call, ajax submitting seems to be disabled
> After submitting the form, successfully, the backend responds with a blank > HTML form. This loads correctly after the call to ajaxSubmit. However when I > submit the form a second time (to add an additional item) the submit is not > sent through ajax, although my button handler which calls ajaxSubmit IS > being fired (added an alert to the beginning to confirm this). The form is > instead submitted as a regular POST form, replacing the entire page. > > Any ideas why this would happen? This is why: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F