Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This event fires when new data is available.

Usage Syntax Platforms

Inline HTML

< ELEMENT  ondataavailable= " handler" ... >

All platforms

Event property

object. ondataavailable= handler

Microsoft® JScript® (compatible with ECMA 262 language specification) only

Named script

<SCRIPT FOR = objectEVENT = ondataavailable>

Microsoft Internet Explorer only

Script Syntax

Copy Code
oXMLDOMDocument.ondataavailable;

Remarks

Script Parameters

None.

Script Return Value

None.

C/C++ Syntax

Copy Code
HRESULT ondataavailable( void );

Remarks

C/C++ Parameters

None.

C/C++ Return Values

S_OK is the value returned if the event is successful.

General Remarks

When handling asynchronous data, it is useful to be able to start processing in parallel with the download as soon as data becomes available. The readyState Property (DOMDocument)defines several states that specify the current status of the asynchronous download.

The event handler for this event can be explicitly set using the ondataavailableproperty.

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

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This event applies to the following interface:

DOMDocument.

See Also

Concepts

ondataavailable Property

Other Resources

READYSTATE