loading context menu


I am loading the context Menu

that time error occures.



this code it works upto - alert(“after object”);



after that it gives error “this.xmlLoader” is null or not an object



        alert(“before object”);

        aMenu=new dhtmlXContextMenuObject(‘120’,‘0’,“codebase/imgs/”);



        alert(“after object”);

        aMenu.menu.loadXML(“xml/_context.xml”);

        alert(“xml is loaded”);

        aMenu.setContextMenuHandler(onButtonClick);



pls specify why this problem occures.



Thanks.

Please be sure that dhtmlxcommon.js included in your project
Such error may occur only if dhtmlxcommon.js missed, or you have strict browser settings which deny xmlHttpRequest object creation ( please check default menu samples included in package - are they working for you ? )