Xml.Live

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.'); });

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.