> This works fine for the first step (the form that is initially loaded), but
> fails to bind to the newly loaded form after submit. I tried moving the
> recursive call into the after/success callback of .ajaxSubmit, but it didn't
> make any difference. Not sure what else to try. Any suggestions?

Jason,

The binding definitely needs to execute in the callback of the
ajaxSubmit method.

$('form').ajaxSubmit({
    target: '#pgContentInner',
    url: '/path/to/page',
    method: 'post',
    complete: function(xhr, status) {
        if (status == "error")
            // do error stuff
        else
            bindForm();
    }
);

What happens when you run bindForm from the callback?  Have you tried
using Firebug and setting a breakpoint on that line?

Mike

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to