You are here: Reference > JavaScript > client-side > event handling > properties > qualifier (event)

qualifier property (event)

Browser support:
Sets or retrieves the name of the default data member. Use this property with data binding events (such as ondatasetcomplete).

Syntax:

object.qualifier;
You can find the related objects in the Supported by objects section below.
This property is read/write.

Possible values:

String that specifies or retrieves the name of the default data member.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the qualifier property:
Code
news.xml
<head>
    <script type="text/javascript">
        function HandleData () {
            switch (event.reason) {
            case 0:
                alert ("Transfer is successful.");
                if (event.qualifier == "") {
                    alert ("No default data member is specified.");
                }
                else {
                    alert ("The name of the default data member is: " + event.qualifier);
                }
                break;
            case 1:
                alert ("Transfer is aborted.");
                break;
            case 2:
                alert ("Some error has occurred during data transfer.");
                break;
            }
        }
    </script> 
</head>
<body>
    <xml src="news.xml" ondatasetcomplete="HandleData ();"></xml>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content