Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dactar on Oct 11, 2008 08:32
open dhtmlx forum
dhtmlxmenu new API vs XML

Hello :)

I've noticed that dhtmlxmenu 2.0 has a new API and XML files from previous version of dhtmlxmenu are not compatible anymore with this new version so I have to modify my XML menu file.

<MenuItem name="Evénements fermés" id="event_closed" href="javascript:menu_call_module('MAIN','EVENT_CLOSED')"/>

MenuItem is replaced by item, name by text but what about href ?

Thanks for your answer
Answer posted by Support on Oct 13, 2008 02:18
Hello

"href" part was removed from xml. Now you can parse the clicked item through the attachEvent() method.
You can store the value in userdata, for example, and then change document.location manualy in onClick event.