Click to return to the XML (Extensible Markup Language) home page    
IXMLHttpRequest::open Met...     IXMLHttpRequest::response...     IXMLHttpRequest Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLHttpRequest::get_readyState Method


Represents the state of the request.

Visual Basic Syntax

lValue = oXMLHttpRequest.readyState

C/C++ Syntax

HRESULT get_readyState(
    long *pvarVal);

Parameters

pvarVal
[out] State of the request, as an I4 (4-byte integer). The following values are defined.

UNINITIALIZED
The object has been created but has not been initialized (open has not been called).
LOADING
The object has been created but send has not been called.
LOADED
send has been called and the status and headers are available, but the response is not yet available.
INTERACTIVE
Some data has been received. You can call responseBody and responseText to get the current partial results.
COMPLETED
All the data has been received, and the complete data is available in responseBody and responseText.

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This property returns a 4-byte integer.

See Also

status, statusText



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.