Export (0) Print
Expand All
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

Reference
IHTMLXDomainRequest
XDomainRequest

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.