SP.SOD.execute(key, functionName, args) Method

Applies to: SharePoint Foundation 2010

Executes the specified function in the specified file with the optional arguments.

SP.SOD.execute(key, functionName, args);

Parameters

key

Type: String

The name of the file containing the JavaScript function.

functionName

Type: String

The fuction to execute.

args

Type: Object[]

The optional arguments to the function.

Remarks

This method loads the script if it has not been loaded.

Applies To

SP.SOD Class

See Also

Reference

SP.SOD Methods

SP Namespace

Other Resources

SP.SOD Properties