I use context menu and menu bar in the same page. But when i click menu bar or child's after that context menu and menu bar not appear properly.
What can i do?
Code part is here.
/* Only one contextMenu object per page */
var contextMenu = new DHTMLSuite.contextMenu();
DHTMLSuite.commonObj.setCssCacheStatus(false);
contextMenu.setWidth(130);
contextMenu.attachToElement(false,'div1',menuModel);
contextMenu.attachToElement(false,'div2',menuModel2);
contextMenu.attachToElement(false,'div3',menuModel4);
/* Fifth menu - created fro markup */
var menuModel5 = new DHTMLSuite.menuModel();
menuModel5.addItemsFromMarkup('menuModel5');
menuModel5.init();
var menuBar2 = new DHTMLSuite.menuBar();
menuBar2.addMenuItems(menuModel5);
menuBar2.setTarget("MainMenu");
menuBar2.init();