Ticket #176 (new enhancement)

Opened 3 years ago

Last modified 5 months ago

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

Changed 2 years ago by dylan

  • owner changed from anonymous to alex
  • component changed from General to IO
  • milestone set to 0.5

Changed 16 months ago by bill

  • milestone changed from 0.9 to 1.1

Changed 16 months ago by bill

When we do this will probably want to pass in a function to check for error, rather than an array of return codes.

Changed 9 months ago by dylan

  • milestone changed from 1.1 to 1.2

Changed 5 months ago by dylan

  • description modified (diff)
  • milestone changed from 1.2 to future
Note: See TracTickets for help on using tickets.