Code Sport 16 Sep , 2013
Hi all, W always face some issues with IE, being a developer their are compatibilities you must follow, I came across a strange issue where the requests were being aborted by IE before the response was finished being delivered. Using Fiddler and Firebug, I was able to see that the request was being made properly, and even the response was coming back properly, but at some point, IE would simply stop accepting the data if it was not a very short response.
You would be surprise that the problem was even more perplexing because it did not happen every time and it did not happen the same in all versions of IE, in fact IE 9 had more difficulty than IE 7.
You might be familiar with the typical way of making an AJAX request using XDR for Internet Explorer. It would generally look like the following:
Check the process of this, it goes like this:
Depending on what you are returning, this is usually all you need.If you run into the problem that we were having, you need to do a little more to fix it.
So the problem has to do with IE timing out the request even though data is being transmitted. By defining some additional event handlers and specifying a timeout value of 0, IE will not abort the request prematurely. Your mileage may vary but for us the solution was to define the following handlers as empty:
Then wrap the send() function in a timeout declaration:
Now lets have a look over the final resulting XDR call of:
Hope that would help you, if you are facing any other issue like that then let me know by commenting.