Xmldom Object method: Object Event _xml Base

Source: Internet
Author: User
ondataavailable Events

Role

This event is triggered when the XML file is valid.

Basic syntax


This event has the following three ways to handle
. Inline:<element ondataavailable = handler>;
. Event property:object.ondataavailable = handler;
. Named Script:<script for = Object EVENT = ondataavailable>;
 

Description

The ondataavailable event is triggered whenever a valid data is obtained. This technique does not explain how much data is available in this file.

Example

xmldoc.ondataavailable = alert (' Data ' now available. ') ;

onReadyStateChange Events

Role

This event is triggered when the content of the ReadyState property changes.

Basic syntax


This incident has the following three ways of handling:
. Inline:<element onreadystatechange = handler>;
. Event Property:object.onreadystatechange = handler;
. Named Script:<script for = Object EVENT = onreadystatechange>;
 

Description

The onReadyStateChange event is triggered when the content of the ReadyState property changes, but the event does not indicate what the "ready" state is. You must use the ReadyState property to get the current state.

Example

Xmldoc.onreadystatechange =
Alert ("The ReadyState property is" + Xmldoc.readystate);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.