Opened 14 years ago

Closed 13 years ago

#190 closed defect (worksforme)

bind's error callback not fired when server down

Reported by: craig@… Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.1
Keywords: bind error handler server failure Cc:
Blocked By: Blocking:

Description

dojo's bind error callback function isn't fired if communication fails with the server. If server is down, bind throws this javascript error.

 Error: [Exception... "Component returned failure code: 0x80040111 
 (NS_ERROR_NOT_AVAILABLE)[nsIXMLHttpRequest.status]"  nsresult: 
 "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location:
 "JS frame :: http://t/dojo/dojo.js :: doLoad :: 
 line 983"  data: no]

Here's a little javascript snippet.

<script>
  function getOne() {
   dojo.io.bind({
    url: "data.xml",
    load: myLoad,
    error: function (type, error) { alert("bind error")}
   });
   return false;
  }
</script>

I'm using dojo v0.1 with firefox 1.5b1. reference: http://www.hollabaugh.com/craig/networkerror.html

Change History (2)

comment:1 Changed 13 years ago by Tom Trenka

Craig,

Are you still getting this error? I've been using bind and deliberately tested against a dead server, and got the error callback just fine.

Tom Trenka

comment:2 Changed 13 years ago by dylan

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.