Catching dhtmlxError


For a long time now we have used a catch method to override the dhtmlx LoadXML error. Since version 3 this is no longer working, we get an error: “dhtmlxError is not defined”. Is there a specific file we need to import?

This is our code inserted after the dhtmlx js imports.

dhtmlxError.catchError("LoadXML",function(a,b,data){ alert('${loading_err}' + '\n' + '${reload_msg}'); });



make sure that dhtmlxcommon.js is included in the page.

Sorry, it was my import ordering, very stupid!