Sorry, I do not speak English. In the project on 3.5 there is no event dhtmlxError.catchError on incorrect xml. If in the project to enclose version 3.0 files - the call is. I can not inform the user on the mistake which has arisen at formation of xml on the party of the server (in 3.5, 3.0-ok).
Firefox 15.0.1
[code]dhtmlxEvent(window, “load”, function() {
mnMain = lcMain.attachMenu();
mnMain.loadXML(“page/menu/menu_xml.php”);
…
if (window.dhtmlxError) {
dhtmlxError.catchError(“LoadXML”, function(type, desc, data) {
var msg = data[0].responseText;
alert(msg);
});
}
…
page/menu/menu_xml.php
<?php header("Content-type: text/xml"); try { $xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";$xml .= "<menu>\n";
...
$xml .= "</menu>";
}
catch (Exception $e) {
$xml = htmlspecialchars($e->getMessage());
}
echo $xml;
?>[/code]