Categories | Question details Back To List | ||
DXTML MENU Not working in Fire Fox following code is working fine in IE but in Fire fox it is showing the menu as in a IE, but not able to click it. menu = new dhtmlXMenuObject("menuObj", "dhx_black"); var menuId = document.getElementById("menuid").value; menu.attachEvent("onClick", function(id){openPathDocs(id);}); Answer posted by Support on Dec 18, 2008 04:12 Could you please provide more code? Answer posted on Dec 18, 2008 05:34 please check the more code we are showing the menu into the separate div <form name="ShowSelectedLink" target="RIGHTBAR" method="post"> </form> <div id="menuObj" align = "right" style = ' background-image: url("../images/dhxmenu_dhx_black/dhtmlxmenu_bg.png"); width: 329px; position:absolute;left:1600px;'></div> <link rel="stylesheet" type="text/css" href="dhtmlxmenu_dhx_black.css"> <script> var menu; document.getElementById("menuObj").style["left"] = screen.width - 380; function initMenu() { menu = new dhtmlXMenuObject("menuObj", "dhx_black"); menu.setImagePath("../images/"); menu.setIconsPath("../images/"); var menuId = document.getElementById("menuid").value; menu.attachEvent("onClick", function(id){openPathDocs(id);}); menu.loadXML("leftbartreexml.jsp?menuid="+menuId); } function openPathDocs(itemId){ var UserURL = (menu.getUserData(itemId, "url")!=null?menu.getUserData(itemId, "url").toString()._dhx_trim():""); if(UserURL != "") { document.ShowSelectedLink.action = UserURL; document.ShowSelectedLink.submit(); } } initMenu(); </script> Answer posted by Support on Dec 18, 2008 06:00 Try this way: <script> function doOnLoad() { var menu = new dhtmlXMenuObject("menuObj", ... ... } </script> <body onload="doOnLoad();"> <div id="menuObj" ... </body> |