Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Is there a limit on the size of the response or a timeout on an AJAX response in IE?

$
0
0

I have the following (pretty standard) javascript code that performs an ajax call, using jquery:

_toggle : function (sessionId, targetId, params) {
	var self = this,
		toggleUrl = 'someurl';

	$.ajax({
		url : toggleUrl,
		type : 'get',
		dataType : 'json',
		data : params,
		cache : false
	})
	.done(function(response, status, jqXHR) {
		self._handleResponse(response, status);
	}
	.fail(function (jqXHR, status, errorThrown) {
		alert("fail");
	});
},

This code works fine with Chrome and Firefox browsers, for any size of responses.

It also works fine with all versions of IE but only for small responses.

In IE, when the response is large (80 MB!), the done handler is called with an 'undefined' response and a 'success' status! Obviously, generating this response also takes some time on the server, around 165 seconds.

Please, I understand that generating such a MASSIVE response is less than ideal, and I'll try to tackle that issue next, but in the meantime, is there anything that can be done so that those large responses get handled correctly on IE?

Thanks.


-Pat


Viewing all articles
Browse latest Browse all 3527

Trending Articles



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