Opened 16 years ago

Last modified 11 years ago

#176 closed enhancement

Allow dojo.io.bind to specify successful HTTP codes — at Initial Version

Reported by: david Owned by: anonymous
Priority: high Milestone: future
Component: IO Version: 0.1
Keywords: bind xmlhttprequest xhr Cc:
Blocked By: Blocking:

Description

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 (0)

Note: See TracTickets for help on using tickets.