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>  
> 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 event) would then be dispatched on that object. (Same for load,  
error, readystatechange and perhaps progress.)

Anne van Kesteren
Received on Wednesday, 5 April 2006 14:24:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC