On Wed, 27 Jan 2010 16:30:37 +0100, Pedro Santos <[email protected]> wrote:
Hi, I'm have a question about the XmlHttpRequest, can I use the same
instance for several requests? Currently I know frameworks that maintain a pool of those objects, and after every call, they invoke the abort method
[1], that switch the state to UNSENT, and use the same XmlHttpRequest
instance for other requests.
The problem is that the error flag get true, and the devs tools report the request with error. Can it be done in other ways?

You can just invoke the open() method directly. That ought to work. I'm not sure why developer tools would report an error for invoking the abort() method though. That sounds like a bug.


[1] http://www.w3.org/TR/XMLHttpRequest/#the-abort-method


--
Anne van Kesteren
http://annevankesteren.nl/

  • XHR Pedro Santos
    • Re: XHR Anne van Kesteren

Reply via email to