onreadystatechange Property (ServerXMLHTTP/IServerXMLHTTPRequest)

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

onreadystatechange Property (ServerXMLHTTP/IServerXMLHTTPRequest)

Specifies the event handler to be invoked when the readyState property changes. Note that onreadystatechange is designed for use in scripting environments and is not readily accessible in Microsoft® Visual Basic® or C++.

Remarks

This event has the same syntax as the onreadystatechange event.

[Script]

Script Syntax

oServerXMLHTTPRequest.onreadystatechange = funcMyHandler;
[C/C++]

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 Values

S_OK
Value returned if successful.

Example

See Use OnReadyStateChange Property in Visual Basic and Visual C/C++.

Remarks

The property is write-only. When using scripting languages, this property can be set in ways other than directly accessing the property through IServerXMLHTTPRequest. It can also be set using the onreadystatechange attribute of the <XML> tag, and the SCRIPT FOR... construct.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

onreadystatechange Event | readyState Property

Applies to: IServerXMLHTTPRequest/ServerXMLHTTP