logo       

Re: calling abort method on XMLHttpRequest instance fires onreadystatechang: msg#00007

Subject: Re: calling abort method on XMLHttpRequest instance fires onreadystatechange with readyState 4
Boris Zbarsky wrote:

See in particular https://bugzilla.mozilla.org/show_bug.cgi?id=218236#c11 for comparisons to IE 6.0 behavior. Note the inconsistency in IE behavior depending on the value of readyState when abort() is called (1 and 2 give different behavior).

I have played with variations of my test case, this variation
<http://home.arcor.de/martin.honnen/mozillaBugs/XMLHttpRequest/abortChangesReadyState4ProgramIdDelay.html>
which only calls abort using setTimeout with a configurable delay indeed consistently for abort called on
  readyState 1
  program id Microsoft.XMLHTTP, Msxml2.XMLHTTP, Msxml2.XMLHTTP.3.0
  delay 10 milliseconds
shows readystatechange events as
  1 -> 1 -> 4
the abort sets readyState to 0 (and does that twice due to 1 -> 1 transition).

Those program ids above are all bound to MSXML 3 on my system, if I run the same test with program ids for MSXML 4 or MSXML 5 or MSXML 6 however the sequence is simply
  1
then abort is called and it sets readyState to 0.

MSXML 3 is what is installed with IE 6, the other MSXML versions are not necessarily around to be used on the client.




--

        Martin Honnen
        http://JavaScript.FAQTs.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe