Quantcast
Channel: User Alexis Abril - Stack Overflow
Viewing all articles
Browse latest Browse all 43

"Stop running this script" - IE for large AJAX requests

$
0
0

I'm using jQuery.getJSON(...) to make a call/process response for a slightly large data set. The response time being a couple of seconds is expected(there's an animated loading graphic to placate the user).

All being said, the loading graphic, response, process, etc are working fine in all browsers. In Internet Explorer(6/7/8), however, the "Stop running this script" error appears. If allowed to proceed, the script completes with no issue.

$(document).ready(function() {    $("#tree").treeview({ collapsed: true, animated: "slow" });    $("#tree").hide();    $("#loadingGraphic").fadeIn("slow");    $.getJSON("mygenerichandler.ashx", function(data) {        //manipulate data and add to treeview        $("#loadingGraphic").fadeOut("slow", function() {            $("#tree").slideDown("slow");        });    });});

I realize this Internet Explorer has a preference you can set via the Windows registry, however, I'm curious how other developers handle expected large or slow responses back in an AJAX request.


Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>