Compartilhar via


onreadystatechange Property (DOMDocument) (Windows CE 5.0)

Send Feedback

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

[Script]

Script Syntax

oXMLDOMDocument.onreadystatechange =funcMyEventHandler;objXMLDOMDocument.onreadystatechange =value;

Script Parameters

None.

Script Return Value

None.

[C/C++]

C/C++ Syntax

HRESULT put_onreadystatechange(VARIANT readystatechangeSink);

C/C++ 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.

Requirements

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

General Remarks

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

You can call the QueryInterface method of the DOMDocument to obtain IConnectionPointContainer for event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONREADYSTATECHANGE.

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

This property is write-only, and applies to the following interface:

DOMDocument.

See Also

readyState Property | onreadystatechange Event

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.