Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Oct 23, 2008 04:08
open dhtmlx forum
Context Menu

Hi Team,

Is it possible to add items to menu using javascript instead of javascript?

I am using the code,

filterMenu=new dhtmlXContextMenuObject('120',0,'','');
...
...
filterMenu.menu.loadXML('/filter_menu.xml');

I don't want to give input through xml but want to use javascript to feed xml.

Can you please tell how to do it?

Thanks

- Agile
Answer posted by Support on Oct 23, 2008 06:18
If you are using dhtmlxMenu 1.0 - please check attached sample
If you are using dhtmlxMenu 2.0 - http://dhtmlx.com/docs/products/dhtmlxMenu/samples/init/init_from_script.html?un=1224769249000
Attachments (1)