Ticket #176 (new enhancement)
Allow dojo.io.bind to specify successful HTTP codes
| Reported by: | david | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | future |
| Component: | IO | Version: | 0.1 |
| Severity: | normal | Keywords: | bind xmlhttprequest xhr |
| Cc: |
Description (last modified by dylan) (diff)
Something like:
dojo.io.bind({
acceptCodes: [404, 500],
url: "...",
load: function() {
alert("The server puked, but I'd like to call that a success");
},
error: function() {
alert("The server did just fine. Isn't that a shame.");
}
});
Change History
Note: See
TracTickets for help on using
tickets.