callClientScript()

Previous Next

Syntax

 callClientScript(Script)

 

Parameter(s)

Script [String]

 

Description

This function contains script that is executed when the callClientScript action is triggered. The callClientScript action has several parameters, whereas the callClientScript(s) function only has the script as an argument. The script parameter contains the JavaScript that is to be executed.

 

callClientScript always parses the script and then runs it with the JavaScript "eval(script)" function. The parsing is performed because of navigation actions. See navigateTo() for more information about script execution combined with page navigation.

 

Depending upon the script, callClientScript() can be client only or if it contains functions like executeQuery(), it is also server side.