Share via


SP.PageRequest.doPost(url, body, expectedContentType, succeededHandler, failedHandler) Method

Applies to: SharePoint Foundation 2010

Executes the "POST" web request.

SP.PageRequest.doPost(url, body, expectedContentType, succeededHandler, failedHandler);

Parameters

url

Type: String

The URL to which the web request is directed.

body

Type: String

The HTTP body of the web request.

expectedContentType

Type: String

The content type of the request data being sent.

succeededHandler

Type: SP.PageRequestSucceededEventHandler

The handler to handle the succeeded request event.

failedHandler

Type: SP.PageRequestFailedEventHandler

The handler to handle the failed request event.

Remarks

This method sets the SP.PageRequest.expectedContentType Property and the SP.PageRequest.url Property to the values of the expectedContentType and url parameters, respectively, registers handlers for the succeeded and failed request events, and calls the SP.PageRequest.post(body) Method to execute the "POST" web request.

Applies To

SP.PageRequest Class

See Also

Reference

SP.PageRequest Methods

SP.PageRequest Properties

SP Namespace