I have just installed version 4.02 of the Suite.
I am trying to use the toolbar with an XML file as the data source.
Using IE11, I am always getting this error message on line 9:
Error: Unable to get property ‘getElementsByTagName’ of undefined or null reference
I have searched in the forums, and it seems to me that this bug was fixed in late 2013.
Could somebody help me ?
Thanks
BTW , I have tried with GET and POST : same results
<?xml version="1.0"?>
<toolbar>
<item id="mm-Versions" type="buttonSelect" img="Versions.gif" imgdis="Versions_dis.gif" text="Versions">
<item type="button" id="mm-1" text="text1"/>
<item type="button" id="mm-2" text="text2"/>
<item type="button" id="mm-3" text="text3"/>
</item>
</toolbar>and here is my html code :
[code]
onLoadFunction = function(){
// data loaded and rendered
// your code here
alert('g');
};
window.dhx4.ajax.method = "get";
window.onload = function(e){
var myToolbar = new dhtmlXToolbarObject("mmenu");
myToolbar.loadStruct('menu.xml',onLoadFunction)}
Sorry, it was my mistake, but your answer helped me.
The xml file was served as text/html. Now I have changed the server configuration to serve it as xml/application, and it works fine.
Thanks a lot