Opened 15 years ago
Closed 10 years ago
#176 closed enhancement (wontfix)
Allow dojo.io.bind to specify successful HTTP codes
Reported by: | david | Owned by: | alex |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | IO | Version: | 0.1 |
Keywords: | bind xmlhttprequest xhr | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
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 (6)
comment:1 Changed 15 years ago by
Component: | General → IO |
---|---|
Milestone: | → 0.5 |
Owner: | changed from anonymous to alex |
comment:2 Changed 14 years ago by
Milestone: | 0.9 → 1.1 |
---|
comment:3 Changed 14 years ago by
comment:4 Changed 13 years ago by
Milestone: | 1.1 → 1.2 |
---|
comment:5 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.2 → future |
comment:6 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
When we do this will probably want to pass in a function to check for error, rather than an array of return codes.