SP.PageRequest.doGet(url, expectedContentType, succeededHandler, failedHandler) Method
Applies to: SharePoint Foundation 2010
Executes the "GET" web request.
SP.PageRequest.doGet(url, expectedContentType, succeededHandler, failedHandler);
Parameters
url
Type: String
The URL to which the web request is directed.
expectedContentType
Type: String
The expected 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.get() Method to execute the "GET" web request.