Does IE6 support XMLHttpRequest.abort ()?

Do I understand correctly that the abort () method for XMLHttpRequest objects is only available with MSIE 7? If so, what equivalent option do I have for interrupting an XMLHttpRequest object during a timeout in MSIE 6?

Using a JS framework to abstract the problem is not an option at this time, I'm afraid :( I am in a legacy system that is close to the production deadline.

+3
source share
3 answers

In IE6, you create the MSXML HTTPRequest instance manually, so it all depends on which version you are using.

abort is implemented in MSXML 3.0 and later . In other words, if you can use this or later (instead of 2.0 or 2.6), you can use interrupt.

As far as I know, IE6 should use MSXML 3.0 when nothing is specified ( http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet -explorer.aspx seems to confirm this), so it should work out of the box, but I can't check it right now, since I don't have access to the IE6 machine.

+4
source

I would look at a framework like jQuery for doing http requests using javascript. They perfectly abstract from browser differences.

0
source

Given that IE does not actually support XMLHttpRequest, but Microsoft.XMLHTTP and various related tastes are interrupted, the response is available depending on the instance of the object that I consider.

This article and this article can help you with the problem associated with this.

0
source

All Articles