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

Re: a recommendation for the XMLHttpRequest

From: Mihai Sucan <mihai.sucan@gmail.com>
Date: Wed, 14 Jun 2006 12:15:06 +0300
To: "David Arthur" <mumrah@gmail.com>, public-webapi@w3.org
Message-ID: <op.ta4pbgjbmcpsjg@localhost.localdomain>

Le Tue, 13 Jun 2006 23:29:28 +0300, David Arthur <mumrah@gmail.com> a  
écrit:

> how about a retry method?
>
> so maybe one could do this.
>
> xhr.open("GET",url,true);
>> xhr.onreadystatechange = function(){
>> if(xhr.readyState == 4 && xhr.status == 408)
>> {
>> //code for timeout
>> xhr.retry();
>> }
>> xhr.send(null);

+1

I like the idea. It can prove useful in situations when the user  
experiences a short network hiccup.


-- 
http://www.robodesign.ro
ROBO Design - We bring you the future
Received on Wednesday, 14 June 2006 09:15:12 GMT

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