Categories | Question details Back To List | ||
Error using DHtmlxMenu in Java app I added following code in my JSP along with proper div and js include <script type="text/javascript"> var searchParamMenu; function initSearchParamMenu() { searchParamMenu = new dhtmlXMenuObject("searchParamDiv"); searchParamMenu.setImagePath("dxhtml/imgs/"); searchParamMenu.setIconsPath("dxhtml/imgs/"); searchParamMenu.attachEvent("onClick", searchParamMenuClick); searchParamMenu.loadXMLString("<menu><item id='m1' text='Add Search Parameter '><item id='m2' text='Add Search Parameter '></item></item></menu>"); } function searchParamMenuClick(id) { document.getElementById("searchParamValueDiv").innerHTML += "<b>onClick</b> Item "+searchParamMenu .getItemText(id)+" (id:"+id+") was clicked<br>"; return true; } initSearchParamMenu(); </script> It gives me IE error box with error as Internet Explorer cannot open the Internet site Http://local.... Operation aborted As soon as I change searchParamMenu.loadXMLString("<menu><item id='m1' text='Add Search Parameter '><item id='m2' text='Add Search Parameter '></item></item></menu>"); to searchParamMenu.loadXMLString("<menu><item id='m1' text='Add Search Parameter '></item></menu>"); It starts working. So I am not able to add any item in the menu. Please guide me. Thanks, Gunjan Answer posted by Alex (support) on Mar 23, 2009 02:14 The issue was not reproduced locally. The same initialization code works correctly. Please, provide the complete demo or direct link where it can be recreated. |