Categories | Question details Back To List | ||
attachMenu to a Layout The following code returns an error: var dhxLayout = new dhtmlXLayoutObject("parentId", "3L"); // attaching a menu var dhxMenu= dhxLayout.attachMenu(); dhxMenu.addNewSibling(null, "file", "File", false); <---------------------------Error message in this line dhxMenu.addNewChild("file", 0, "file_new", "New", false, "new.gif"); dhxMenu.setHotKey("file_new", "Ctrl+N"); Error Message: dhxMenu is null Answer posted by Support on Oct 22, 2008 01:32 Are you attach all necesary js/css files? (in <head>) Answer posted by Stoffel Armin on Oct 22, 2008 01:36 That was the Problem. I forgot a javascript file. Thanks |