Skip to content

Commit

Permalink
Merge pull request #2154 from ibolmo/fix-2110-docs-request-json-onfai…
Browse files Browse the repository at this point in the history
…lure

Fixes #2110.
  • Loading branch information
cpojer committed Dec 5, 2011
2 parents f6d4e91 + 9c5d965 commit 27c958b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Docs/Request/Request.JSON.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ Fired when the parsed JSON is not valid and the secure option is set.
1. text - (string) The response text.
2. error - (string) The error message.

#### failure

Fired when the request failed (error status code), or when JSON string could not be parsed.

##### Signature:

onFailure(xhr)

##### Arguments:

xhr - (XMLHttpRequest) The transport instance.

### Returns:

* (*object*) A new Request.JSON instance.
Expand All @@ -59,3 +71,7 @@ Fired when the parsed JSON is not valid and the secure option is set.
alert(person.height); // alerts "170 cm".
alert(person.weight); // alerts "120 kg".
}}).get({'firstName': 'John', 'lastName': 'Doe'});

### See Also:

[Request](/core/Request/Request)

0 comments on commit 27c958b

Please sign in to comment.