W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

Re: ISSUE-58: XMLHttpRequest.abort() should just reset the object

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 05 Apr 2006 16:24:29 +0200
To: "Christophe Jolif" <cjolif@ilog.fr>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.s7jgy30664w2qv@id-c0020.oslo.opera.com>

On Wed, 05 Apr 2006 15:14:18 +0200, Christophe Jolif <cjolif@ilog.fr>  
wrote:
> There is something I still don't get with abort and XHR state. We saw  
> that we think the state after an abort must be 4 == loaded. Given that,  
> as a listener on the request, how can I know if a request has been  
> aborted or has been loaded? As far as I can see, I can't. And it seems  
> to me like an important missing feature.

My idea would be that an object that implements the XMLHttpRequest  
interface also implements the EventTarget interface. When somebody calls  
abort()  
http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/events.html#event-abort  
(abort event) would then be dispatched on that object. (Same for load,  
error, readystatechange and perhaps progress.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 5 April 2006 14:24:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT