var div = document.createElement("DIV");
var myContextMenu = new dhtmlXMenuObject({
parent: div
});
above code will error, because dhtmlXMenuObject.prototype.addContextZone will call document.getElementById(zoneId), but this will get null, because div doesn’t append to to document.
thanks!