Re: calling abort method on XMLHttpRequest instance fires onreadystatechange with readyState 4

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>
Martin Honnen wrote:


> Other implementations (Opera 8.5, IE 6 with Microsoft.XMLHTTP) simply 
> abort and set readyState to 0, not firing any onreadystatechange 
> handler, certainly not one with readyState 4.

The documentation of MSXML's IXMLHttpRequest abort method
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/7b1cfc92-5078-404a-85a2-a907fe1184a2.asp>
also says:
   "The request will be returned to the UNINITIALIZED state"
and
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/0e6a34e4-f90c-489d-acff-cb44242fafc6.asp>
defines UNINITIALIZED as 0.

Why does Mozilla do a 4 to 0 transition with readyState, why does it not 
directly go to readyState 0?

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.