Share via


ondataavailable Event (Compact 2013)

3/26/2014

This event fires when new data is available.

Syntax

oXMLDOMDocument.ondataavailable;
HRESULT ondataavailable( void );

Parameters

Script

None.

C/C++

None.

Return Value

Script

None.

C/C++

S_OK is the value returned if the event is successful.

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 ondataavailable property.

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

This event applies to the following interface:

DOMDocument.

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 = object EVENT = ondataavailable>

Microsoft Internet Explorer only

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Events
ondataavailable Property