Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:16

dynamically insert item after drawMenus() - mm_insertItem


Poster: gelid
Dated: Thursday February 2 2006 - 21:24:15 GMT

I have all of my static menu items in the menu_data.js file. I also have a number of additional menu items that are not in the file because they need to be added based on the criteria of the user logged in. I am using the mm_menueditapi.js module without success. No matter what I have tried, I get one of two results: no menu items displayed at all (all items in the menu_data.js file fail to display) or the new items fails to show up in the menu.

I have included the mm_menueditapi.js above and below drawMenus()
I have also put the mm_insertItem statement above and below drawMenus()

Here is the insert item code I am using:
mm_insertItem('MainMenu',3,'text=New Order;Status=New Order;url=Shopping/Default.aspx;')

I have not seen anyone asking questions, so this must be something very simple. Any thoughts on this one?