This topic has not yet been rated - Rate this topic

timeout property

Gets or sets the value of the timeout property.

Internet Explorer 8

Syntax

HRESULT value = object.put_timeout( v);HRESULT value = object.get_timeout(* p);

Property values

Type: long

the number of milliseconds the browser waits for a server response.

Remarks

Note   The timeout property has a default of 0.

The IHTMLXDomainRequest::responseText will be null, if the timeout period expires.

You should set the timeout to a value that is slightly longer than the response time you expect for the request.

Examples

Setting the timeout property.



var xdr;
xdr = new XDomainRequest();
xdr.timeout = 10000;
                

See also

XDomainRequest Constructor
Reference
IHTMLXDomainRequest
XDomainRequest

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.