Class: SC.XHRResponse
Extends
SC.Response.
Concrete implementation of SC.Response
that implements support for using XHR requests. This is
the default response class that SC.Request
uses and it is able to create cross-browser
compatible XHR requests to the address defined on a request and to notify according to the status
code fallbacks registered on the request.
You will not typically deal with this class other than to receive an instance of it when handling
SC.Request
responses. For more information on how to create a request and handle an XHR response,
please @see SC.Request.
Defined in: response.js
- Since:
- SproutCore 1.0
Field Summary
- Fields borrowed from SC.Response:
- address, body, errorObject, errorValue, isCancelled, isError, isJSON, isResponse, isXML, listeners, originalRequest, request, status, timedOut, timeoutTimer, type
Instance Methods
Field Detail
encodedBody String- Default value:
- #rawRequest
Instance Method Detail
Creates the correct XMLHttpRequest object for this browser.
You can override this if you need to, for example, create an XHR on a different domain name from an iframe.
- Returns:
- XMLHttpRequest|ActiveXObject
- Returns:
- XMLHttpRequest|ActiveXObject