the issue wasn’t reproduced locally - the sample is attached.
But onclick isn’t called for complex items (when item has children). In order to enable onclick in this case you can modify the following line in the dhtmlxmenu.js, _doOnClick method:
if (type.charAt(0)==“c”) { return; } // can’t click on complex item try to replace it with: if (type.charAt(0)==“c”) {this.callEvent(“onClick”, [id]); return; } // can’t click on complex item
Thanks for this, I tried putting this in the js though and to no effect :-/
I am trying to make it so that the menu system can be used to navigate a website. Is this possible?
The menu loads up fine, but it still doesn’t go to the url link from my xml file when clicked. If I put the alert function from your sample in, it does pick up the url though and puts it in a popup alert window. I’m at a loss!