Compartilhar via


SP.SOD Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.SOD class.

Methods

Name

Description

execute

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

executeFunc

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

executeOrDelayUntilEventNotified

Executes the specified function if the specified event has occurred; otherwise, adds the function to the pending job queue.

executeOrDelayUntilScriptLoaded

Executes the specified function if the file containing it is loaded; otherwise, adds it to the pending job queue.

notifyEventAndExecuteWaitingJobs

Records the event and executes any jobs in the pending job queue that are waiting on the event.

notifyScriptLoadedAndExecuteWaitingJobs

Records that the script file is loaded and executes any jobs in the pending job queue that are waiting for the script file to be loaded.

registerSod

Registers the specified file at the specified URL.

registerSodDep

Registers the specified file as a dependency of another file.

SOD

Initializes a new instance of the SP.SOD class.

Applies To

SP.SOD Class

See Also

Reference

SP Namespace

Other Resources

SP.SOD Properties