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

rewrite menu in parent frame


Poster: dgrafx
Dated: Saturday March 28 2009 - 15:46:08 GMT

Hi Guys,
I'm looking for help rewriting the menu (which is in parent frame) from an iframe.
1) I use the menu to show category structure (parent / child)
2) when on a category edit form and click update (the forms target is the iframe) I want to rewrite the menu so it shows the changes.
I don't need help with "rewriting" the menu - just "how to reload the menu" without reloading the page.

Thanks ...

Re: rewrite menu in parent frame


Poster: Andy
Dated: Wednesday April 1 2009 - 0:34:00 BST

Hi,

Reloading the menu without reloading the page is possible but can can be quite tricky. However, what I think what you need is the menu API found here: http://www.milonic.com/mm_menueditapi.js

It will allow you to add, edit and delete menus and menu items after the page has loaded and contains its own menu reloading utilities built-in so that you do not need to worry about it.

HTH,
Andy

Re: rewrite menu in parent frame


Poster: dgrafx
Dated: Saturday April 4 2009 - 19:37:00 BST

Hi Andy,
Sorry - I didn't realize you had responded - I was expecting an email I guess if someone responded.
Anyway - thanks ...

I assume you refer to mm_reloadMenu() in the api - is that correct?
If so - I can't get it to work - any clues as to how to?
main menu name is TN5 so am doing parent.mm_reloadMenu("TN5");

any help is greatly appreciated

Re: rewrite menu in parent frame


Poster: Andy
Dated: Wednesday April 15 2009 - 10:46:42 BST

Hi,

Do you have anything that we can see? Something that you've already done perhaps that we can work on.

-- Andy

Re: rewrite menu in parent frame


Poster: dgrafx
Dated: Thursday April 16 2009 - 15:58:30 BST

not really
It's in an admin only area.
Plus you wouldn't be able to see the forms action page as it's in a hidden iframe target.
But if you could post some example code I'm confident that I could make it work IF it's possible to do such a thing.
So since my menus name is "TN5" - what function would I call? - I've tried a few with no luck - and what syntax?
Thanks