Export (0) Print
Expand All

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

SharePoint 2010

Last modified: May 26, 2011

Applies to: SharePoint Foundation 2010

Executes the "POST" web request.

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

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.

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.

Show:
© 2015 Microsoft