W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: XHR

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 31 Jan 2010 11:37:38 +0100
To: "Pedro Santos" <pedrosans@gmail.com>, public-webapps@w3.org
Message-ID: <op.u7d7s0xy64w2qv@annevk-t60>
On Wed, 27 Jan 2010 16:30:37 +0100, Pedro Santos <pedrosans@gmail.com>  
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/
Received on Sunday, 31 January 2010 10:38:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:36 GMT