sc_ajax_javascript( 'JavascriptMethodName', array("parameter"))

This macro allows the execution of JavaScript methods called from events in form/control applications.

This macro receive two parameters: a required one which recive a the JS method name and an optional that recive an array with the method parameters on it.

This macro is only valid in applications with AJAX support.

Examples:

Ex. 1: Method javascript without parameters:
sc_ajax_javascript('JavascriptMethodName');


Ex. 2: Method javascript with a paramenter:
sc_ajax_javascript('JavascriptMethodName', array("paramameter"));


Ex. 3: Method javascript with two paramenters:
sc_ajax_javascript('JavascriptMethodName', array("param1","param2"));