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

IXMLHttpRequest::put_onreadystatechange Method


Specifies the event handler to be invoked when the readyState property changes.

Visual Basic Syntax

oXMLHttpRequest.onreadystatechange = funcMyHandler

C/C++ Syntax

HRESULT put_onreadystatechange(
    VARIANT readystatechangeSink);

Parameters

readystatechangeSink
[in] Name of the function that should be called when the readystate property value changes.

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This event has the same syntax as the IXMLDOMDocument onreadystatechange event.

You can call the IXMLHttpRequest object's QueryInterface method to obtain the IConnectionPointContainer interface, which is used in event management.



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.