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);


Type: String

The URL to which the web request is directed.


Type: String

The HTTP body of the web request.


Type: String

The content type of the request data being sent.


Type: SP.PageRequestSucceededEventHandler

The handler to handle the succeeded request event.


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.

© 2015 Microsoft