Class glow.net.CrossDomainResponse
Defined in: core.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Response object for cross-domain requests.
|
| Method Attributes | Method Name and Description |
|---|---|
|
json(safeMode)
Gets the body of the response as a JSON object.
|
|
|
nodeList()
Gets the body of the response as a glow.NodeList.
|
|
|
text()
Gets the body of the response as plain text.
|
Class Detail
glow.net.CrossDomainResponse()
Response object for cross-domain requests.
This is provided in glow.net.CrossDomainRequest's 'load' event.
Method Detail
{object}
json(safeMode)
Gets the body of the response as a JSON object.
- Parameters:
- {boolean} safeMode Optional, Default: false
- If true, the response will be parsed using a string parser which will filter out non-JSON javascript, this will be slower but recommended if you do not trust the data source.
- Returns:
- {object}
{glow.NodeList}
nodeList()
Gets the body of the response as a glow.NodeList.
- Returns:
- {glow.NodeList}
{string}
text()
Gets the body of the response as plain text.
- Returns:
- {string}