Opened 17 years ago

Closed 16 years ago

#190 closed defect (worksforme)

bind's error callback not fired when server down

Reported by: [email protected] Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.1
Keywords: bind error handler server failure Cc:
Blocked By: Blocking:


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.

  function getOne() {{
    url: "data.xml",
    load: myLoad,
    error: function (type, error) { alert("bind error")}
   return false;

I'm using dojo v0.1 with firefox 1.5b1. reference:

Change History (2)

comment:1 Changed 16 years ago by Tom Trenka


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 16 years ago by dylan

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