Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Attaches a change event handler on specified xpath.

void myXml.Live(callback: (e: XmlEvent) => void)

Attaches a change event handler on specified xpath.

void myXml.Live(xpath: string, callback: (e: XmlEvent) => void)

Arguments

(e: XmlEvent) => void callback
Callback function to be execute.
string xpath
XPath of nodes to be attached. If not specified current node is selected.

Remarks

This method attaches to existing and created in later future nodes.

This method is only available on client side scripts like Form scripts.

Example

Receive an alert for changing the customer name

$Xml.Live('//Order/Count',function() {
  alert( 'Order count is changed.');
});

Example

Receive an alert for any change all order/count nodes

$Xml.Live('//Order/Count',function() {
  alert( 'Order count is changed.');
});
  • No labels