WGA.callAction(actionLink [, urlParams])
This is a convenience method for WGA.action() for triggering serverside WebTML actions offering the most frequently used parameters as arguments.
An action link string to be generated by <tml:action>.
An object whose properties are to be used as URL parameters on the action call, using property name as parameter name and property value as parameter value. Specifying multi-value parameters is not supported.
A simple usage of WGA.callAction() from an HTML button:
<button onclick="WGA.callAction('<tml:action ref="saveDocument" param1="true"/>'); return false;">Save me!</button>
Notice the string delimiters around <tml:action> which are neccessary for this to work. They enclose the action link string generated by <tml:action>. Also, although code after WGA.callAction() is not effective for the page that gets loaded it is a good idea to end the event script with "return false" to keep the event from further "bubbling up".
By the way: Simple buttons to call action links are generated way more easily using <tml:button>.