Request Executor JavaScript Reference (sp.requestexecutor.js)

Applies to: JavaScript | SharePoint Foundation 2013 | SharePoint Server 2013

The Request Executor library enables cross-domain client-side calls, which are required when coding against SharePoint services when pages are hosted outside of SharePoint.

In this section

The Request Executor library—also known as the cross-domain library--contains objects and enumerations that support message processing, requests, responses, commands, errors, and exceptions.

Table 1. SP namespace in Request Executor library

Name

Description

PostMessageCommands enumeration

This member is reserved for internal use and is not intended to be used directly from your code.

PostMessageRequestInfo enumeration

This member is reserved for internal use and is not intended to be used directly from your code.

PostMessageResponseInfo enumeration

This member is reserved for internal use and is not intended to be used directly from your code.

RequestExecutor object

Provides an abstract class to issue a Web request to the server and get a response from the server.

RequestExecutorErrors enumeration

Specifies error messages thrown by the SP.RequestExecutor object (sp.requestexecutor.js) object.

RequestExecutorExceptions enumeration

Specifies exceptions thrown by the SP.RequestExecutor object (sp.requestexecutor.js) object.

RequestExecutorMessageProcessor object

Processes messages for the SP.RequestExecutor object (sp.requestexecutor.js) object.

RequestExecutorMessageProcessorInitInfo enumeration

Initialization information for the RequestExecutorMessageProcessor object.

External resources

JavaScript API reference for apps for SharePoint

See also

Other resources

SharePoint 2013: Get the host web title using the cross-domain library (JSOM)