Categories | Question details Back To List | ||
dhtmlxMenu: Initialising from HTML, no images Good afternoon, first of all, my script: <div id="menuData" style="display: none;"> <div id="preferences" text="Einstellungen" img="page_setup.gif" imgdis="page_setup_dis.gif"> <div id="preferences_0" text="Design"> <div id="design_0" text="Default" group="0" type="radio"></div> <div id="design_1" text="Orange" group="0" type="radio"></div> </div> </div> </div> <script> var menu = my_win.attachMenu(); menu.loadFromHTML('menuData', true); menu.setImagePath("./system/dhtmlx/menu/imgs/"); menu.setIconsPath("./system/dhtmlx/menu/icons/"); </script> -------------------- As I filled my menu with script, my images were present as usual. With loading my script per html, my images and even the radio-buttons or the arrows are not shown. Only if I "touch" a radio-button, the "image" of a radiobutton is loaded correctly. Is there a possibility to pre-load the images? The path to my images should be correct, as it works perfect with not loading from html. another question: with the second parameter of "loadFromHTML", if I do understand, I can hide this div layer, but it is still shown in the source code of the page? best regards obm Answer posted by Alex (support) on Jun 18, 2009 05:05 Hello, try to call methods that set images before menu intialization: menu.setImagePath("../../codebase/imgs/"); menu.loadFromHTML('menuData', true); Answer posted on Jun 18, 2009 05:22 thank you very much, now it works perfectly ;) now just tryin to get my menu items per sql and save them in my session... |