Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does IE6 support XMLHttpRequest.abort()?

Am I correct to understand that the abort() method for XMLHttpRequest objects is only available starting from MSIE 7? If so, what equivalent option do I have for aborting an XMLHttpRequest object on timeout in MSIE 6?

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

like image 799
urig Avatar asked May 02 '26 10:05

urig


1 Answers

On IE6, you instantiate the MSXML HTTPRequest manually, so it all comes down to what version you end up using.

abort is implemented in MSXML 3.0 and later. In other words, if you can get this or a later version instantiated (rather than 2.0 or 2.6), you can use abort.

To the best of my knowledge, IE6 should use MSXML 3.0 when nothing else 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 test this right now, as I don't have access to an IE6 machine.

like image 60
Michael Madsen Avatar answered May 04 '26 03:05

Michael Madsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!