SP.SOD.executeFunc(key, functionName, fn) Method

Applies to: SharePoint Foundation 2010

Ensures that the specified file that contains the specified function is loaded and then runs the specified callback function.

SP.SOD.executeFunc(key, functionName, fn);

Parameters

key

Type: String

The name of the file containing the function that is executed.

functionName

Type: String

The name of the function that is executed.

fn

Type: Function

The function that is called once functionName has finished executing.

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