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:12

Deleting menu item dynamically


Poster: udi
Dated: Wednesday September 1 2004 - 22:29:03 BST

At the risk of being a nuisance, I'd like to ask this question one more time and I am hopeful of an answer. Andy and Kevin were kind enough to provide some wonderful code allowing me to add an item to a menu dynamically after it has been rendered (See this thread for more information). The other piece to this puzzle is of course the ability to remove a menu item dynamically as well.

I'm looking for a menuName.deleteItem(index) and a menuName.deleteAll() function would be nice to have as well (or at least help me find out how to get the number of items in a menu so I can loop through them).

Is something like this possible? Judging by the insertItem() code, I dont' think it should be too difficult. If I had a copy of the unobfuscated javascript menu code I could probably figure it out on my own, but it's one big jumble of text at the moment...

Thanks!


Poster: Ruth
Dated: Thursday September 2 2004 - 6:27:35 BST

This is way beyond me, but have you checked out the menu methods and functions references? It does talk about getting parent items and menus etc. There is also a section on global variables which has references to integer_itemRef . I have no idea if anything there is of help for you.
Ruth

Re: Deleting menu item dynamically


Poster: kevin3442
Dated: Thursday September 2 2004 - 23:08:40 BST

udi wrote:
At the risk of being a nuisance

Jeez! What a pain! ;) (just kidding of course)

udi wrote:
I'd like to ask this question one more time and I am hopeful of an answer.

Im sorry. I guess I sort of lost track of that thread... hadn't realize that there were additional posts in it. I think what I'll do is reply in the original thread, so that the continuity of the thread isn't broken.

Cheers,

Kevin