dynamically insert item after drawMenus() - mm_insertItem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
gelid
Advanced
Advanced
Posts: 11
Joined: Fri Dec 30, 2005 3:53 pm

dynamically insert item after drawMenus() - mm_insertItem

Post by gelid »

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?
Post Reply