Dhtmlxtoolbar error on disableItem method

Hi,

I use DhtmlxToolbar and when I disable an item afer loading I have error “this.objPull[…] is null or not an object” only with Internet Explorer (with FF is OK).



var toolbar = new dhtmlXToolbarObject(“toolbar”);

toolbar.setIconsPath("…/ressources/images/toolbar/");

toolbar.loadXML("…/data/dhtmlxtoolbar.xml");

toolbar.disableItem(“debut”);



Hello,

Possible reason: you disable item before ajax has been completely loaded.

Possible solutions:
1. Using onLoadFunction
    toolbar.loadXML("/file.xml", function(){ toolbar.disableItem(“debut”);
});
2. Disable item directly in XML:
    dhtmlx.com/docs/products/docsExp … lbar2.html