Share via


readyState Property (IXMLHTTPRequest) (Windows CE 5.0)

Send Feedback

Represents the state of the request.

[Script]

Script Syntax

lValue=oXMLHttpRequest.readyState;

Script Parameters

None.

Script Return Value

Variant. State of the request, as an I4 (4-byte integer). The following table shows the defined values.

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

[C/C++]

C/C++ Syntax

HRESULT get_readyState(long* plState);

C/C++ Parameters

  • plState
    [out, retval] State of the request, as an I4 (4-byte integer). The following table shows the defined values.
    (0) UNINITIALIZED The object has been created, but not initialized (the open method has not been called).
    (1) LOADING The object has been created, but the send method has not been called.
    (2) LOADED send method has been called and the status and headers are available, but the response is not yet available.
    (3) INTERACTIVE Some data has been received. You can call responseBody and responseText to get the current partial results.
    (4) COMPLETED All the data has been received, and the complete data is available in responseBody and responseText.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG
    Value returned if the input argument is NULL.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.

General Remarks

It represents the state of the request as an I4 (4-byte integer).

This property returns a 4-byte integer.

The property is read-only, and applies to the following interface:

IXMLHTTPRequest

See Also

open Method | send Method | responseBody Property | responseText Property | status Property | statusText Property

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.