dhtmlxMenu init via HTML


When trying to add any additional menu options to an item at creation time via loadFromHTML() such as tooltip, href, hotkey IE throws a “Object Required” error. This also occurs with the sample code (dhtmlx.com/dhxdocs/doku.php? … ta_loading), the sample also has a missing ‘>’ to close the item div.

Target browser IE7

Versions v2.0 and v2.5

Do you have a working sample please?




how do you try to add menu options ? please provide details


  Thank you for the quick response. All through

as per the sample, as soon as you add any additional tags such as , ,  etc (inside so it is a child element) IE gives the error and the Menu is not shown.






If I leave out the extra options the menu displays and works fine (albeit using events).



Unfortunately it isn’t possible to define hotkey and href as tags. You can try to use menu API instead:

menu.loadFromHTML(“menuData”, true);



OK, you might want to take that out of the samples then. I noticed that some references to menu loading by HTML had been removed between v2.0 and v2.5 (samples/01_init/02_init_from_html.html) but the sample remains the same elsewhere.

This is a conversion of an exsting page generated by a cgi script so I was hoping that it wouldn’t need to be altered too much. I’ve taken it out of the childNodes loop and added it as an attribute of the


Thank you for your help.