Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xmlHttpRequest abort() method does not close the connection in Internet Explorer

I have multiple xmlHttpRequest on my page, and I am attempting to call the abort() method on them all. Works great in FF. IE, on the other hand does not do a darn thing. The connections do not close, and I am unable to navigate to another page until the requests complete. What is this? Why doesn't IE close the connections when abort() is called?

like image 537
Bryan Avatar asked Nov 06 '22 15:11

Bryan


1 Answers

I've almost never gotten abort to work in IE. I'm tired and can't remember why - something about not being able to abort until you're in readyState 4 (or maybe that it changed to readyState 4 when it aborts?). Either way, Ajaxian has a work around in the depths of its' archives:

http://ajaxian.com/archives/reusing-xmlhttprequest-without-abort

like image 55
Dan Beam Avatar answered Nov 15 '22 06:11

Dan Beam