I\'ve been observing some strange behavior with the following code:
$.fn.submit_to_remote = function() { // I use .each instead of the .submit directly so
Not sure about this strange behavior, but seems that unbinding the submit event will do the trick.
So, before running the script returned by the $.ajax call, run this:
$('.submit_to_remote').unbind("submit");
That should remove previous bindings and leave just the new one.