Re: XHR timeout and browsing context destruction

On Wed, 05 Apr 2006 11:33:12 +0200, Stéphane Sire <sire@intuilab.com>  
wrote:
> - nothing is said about how to create/manage timeout; I guess the idea  
> is to use the external timer API (for instance in Window object) and  
> then use cancel to end a timed out request...

Yeah. There's been no existing functionality with timers specifically on  
XMLHttpRequest. I do believe Gorm had some suggestions for that though  
based on existing "AJAX" libraries but that's likely XHR 2.0 work.


> - what happens if the browsing context is destroyed, is the request  
> canceled or not ? is the onreadystatechange function called ?

I guess that equals to calling abort() although it's not said explitly in  
the specification... Should we say something about it? Can it be tested in  
browsers?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Friday, 21 April 2006 10:31:42 UTC