Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ravi on May 22, 2009 03:21
open dhtmlx forum
dhtmlxError

Hi!
Dhtmlx Error is working in mozilla but not in IE.Can you please tell me where exactly the problem is.Below mention is the sample code:


dhtmlxError.catchError("ALL", function()
{ if(loadNo<=3){
hideProgress();
alert("Large volume of data - Connection Time out\n Retrying....");
showProgress();
outputResponse(param);
loadNo++;
}else{

alert("System Failure. Please contact Admin.");
hideProgress();
loadNo=1;
}
});
Answer posted by Support on May 22, 2009 03:48
IE may not throw an error if incoming data can be parsed as a valid XML ( difference in behaviors caused by different XML DOM implementation in different browsers ) 
You can try to add a next line

component.attachEvent("onXLE",function(){ 
          if (_isIE && this.xmlLoader.getXMLTopNode().tagName != "expected response top tag name here")
               custom_error_action();
})

Or just be sure that error message response can't be parsed as valid XML