Script Stack Space Exhausted on Firefox
Hello,
I have a JSP page that I am updating via an AJAX post. When the page gets sufficiently large, I get a "script stack space quota is exhausted" message. I realize it is due to the size of the response, but is there a better way than the following?
- jQuery.fn.success = function(responseText, statusText, $form) {
- var formId = '#' + $form.attr('id');
- $(formId).replaceWith($(formId, responseText));
- // Set up our form object again now that we've replaced our form with the data coming back.
- $form = $(formId);
- // ...
- };