Hi,
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?
Regards,
Paul
Hello,
how do you try to add menu options ? please provide details
Hi,
Thank you for the quick response. All through
…
If I leave out the extra options the menu displays and works fine (albeit using events).
Regards,
Paul
Unfortunately it isn’t possible to define hotkey and href as tags. You can try to use menu API instead:
menu.loadFromHTML(“menuData”, true);
menu.setHotKey(“m11”,“Ctrl+N”);
menu.setHref(“m12”,“http://www.google.co.uk”);
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.