OpenWGA 7.10 - JavaScript reference

WGA.ajax
Method :

WGA.ajax.b4post.register(formid, fn)

On object WGA.ajax
Usage Registers a function to be executed when a HTML form is posted via AJAX action
Description When a WebTML action is called via AJAX, and the action link is inside a WebTML form (or specifies a form to send with it) then the HTML form gets posted along with the request. On this occurence the registered JavaScript function is called. The function gets no parameters on call.
Parameters

formid (String):

ID of the WebTML form (equalling the id attribute of the <tml:form> tag) whose posting should trigger the function call

fn (JavaScript function):

The JavaScript function to call.