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”);


        alert(“xml is loaded”);


pls specify why this problem occures.


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 ? )