Method calling

Calling Methods From XML

You can execute methods on objects as XML event handlers.

Use the following general form to perform a method call from an XML document:

container:objectName.methodName(...) 

where container: is optional. If you do not specify container:, Nexaweb assumes a call to a system service such as XPathService or DisplayService.

Examples of executing methods on objects as XML event handlers include:

onCommand="mco:myMco.do()" 
onCommand="macro:myMacro.execute()" 
onCommand="DisplayService.unloadStyleSheet( 'myStyleSheet' ) 

See Method Parameters for information on formats that you can use to specify method parameters.