dhtmlxMenu - ErrorType LoadXML, Invalid XML

Hey everyone,

I’m running into a problem with dhtmlxMenu. On pages which can potentially refresh quickly, the error comes up even if the page that spits out the XML generates 100% valid XML. It even happens in your own demo if you refresh the page several times in quick succession. I’m guessing if the request for the XML is interrupted while it is pending, an error is being thrown. Is there a way we could change this to use something like console.log or simply let us override the function? I couldn’t find anything in the documentation for dhtmlxMenu that would accomplish this, but if I just missed it I apologize!

This is the demo page where I was able to replicate the issue (Chrome 16 dev, Firefox 6). Any help is appreciated.

dhtmlx.com/docs/products/dht … _body.html

Thanks!

Hi,

you may disable alert message as follows:

function my_error_handler(type, name, data){

/*your code here if it is needed*/ } dhtmlxError.catchError("LoadXML",my_error_handler);

Very helpful as always! Thanks Alexandra. :slight_smile: