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

Collapsing menu : Help - jumping to URL closes menu

Poster: paul.frear
Dated: Monday September 13 2004 - 17:25:28 BST

I realise that the collapsing menu is new and currently unsupported, but can any users help ?

Hi - I have created a collapsing menu which, on selection of an option,
expands a submenu and also jumps to a new url.

The new url also contains the same menu system. I would like the menu to stay expanded if possible.

menu is at ... extree.htm

Select option - About Eucare - this should open abouttree.htm, and also expand the menu.

Is this possible

regards Paul.

Poster: Ruth
Dated: Monday September 13 2004 - 18:19:09 BST

I believe that would take some kind of javascript function, if it were possible. You are jumping to a new page, therefore in effect opening a new page so the menu on that page would be in the original start condition. There was a post about having a submenu open on load and Kevin did a function which you can see here, I'm not sure you can apply it to the treemenu.


Poster: paul.frear
Dated: Tuesday September 14 2004 - 16:41:49 BST

Hi Ruth / everyone

Thanks for your input so far. That looks to do what I want, although I am not sure how I would implement it with the tree / collapse menu. Any chance we can sweet talk Kevin to have a look at it ?

I also need it to work with submenus, if a url is opened from a sub menu. I was under the impression this worked using a conventionally laid out menu (i.e. highlighted the Page option), but I may be wrong.

I would really appreciate any kind of hints on this, as my project relies on this functionality.
If there are additional costs involved, please let me know.


Poster: paul.frear
Dated: Tuesday September 14 2004 - 16:55:02 BST

One further thought

I can pass the calling page as part of the url, or indeed any other information if necessary. ie url=about.htm?About Smith

I don't know whether this helps.


Poster: Ruth
Dated: Wednesday September 15 2004 - 2:06:13 BST

I'll pass it on, Paul, but I don't know that Kevin would have the time to do anything. We [Kevin, John, Maz, myself] don't work for Milonic, we are just volunteers who help on the forum because we so like the menu. And, though I don't know functions and such, I'll see if I can figure out if it will work with the treemenu.


Poster: Ruth
Dated: Wednesday September 15 2004 - 3:07:17 BST

That was quick, Paul. As far as I can see the only way for this to work would be to have the function totally re-written so it would mesh somehow with the tree functions. I did pass it on to Kevin, but again, I have no idea if he will be able or have the time.

Now, I'm just throwing this out there, kind of like brainstorming :roll: I remember seeing one site that had two menus, they were the same menus actually, but one was the regular menu across the top, and the other was the same but in a tree form on the left side. I would think it might be possible to use the opensubsonload if you had the other menu also. Remember these are just tossing thoughts around. I'm wondering if it would be possible to have the main menu be always invisible so that you could use the opensubsonload with that menu and the only thing that would show would be the subs when you get to the particular page and the treemenu would be on the side vertical and still function like a tree menu? I'd have to play and see if I could figure anything out, but if that's a possibility I'd also kind of have to see how you have a layout to make sure it fit that.


Poster: paul.frear
Dated: Wednesday September 15 2004 - 16:47:11 BST

My money's on Kevin, and yes - I am willing to pay for a quick solution.


Poster: kevin3442
Dated: Wednesday September 15 2004 - 20:25:44 BST

Hi Paul,

I'm willing to give it a shot, but there are two potential obsacles: (1) I've barely even looked at the tree menu. I've been meaning to play with it, but haven't had much time for it. So I have no idea how its internals work. (2) I don't have much in the way of blocks of time to devote to it. I'm preparing for a conference next week, so the time I have for "menu messing" is more along the lines of a little here, a little there... mental diversions when I take a break from my real work. Just telling you these things so you don't place your entire hope on me for an immediate solution.

What are your URLs like? Are they simple, or are you passing parameters? Are your pages html or are you using php, asp, etc.? Do you have any sort of test page or mockup I could start with?

Here's another question... a little off the wall. You wouldn't happen to be from Virginia, would you?


Poster: paul.frear
Dated: Wednesday September 15 2004 - 21:12:35 BST

Hi Kevin, thanks for responding so quickly

Firstly - urls passed are .htm, but my web server is configured to parse these for embedded php. (We like to keep things as simple as possible from the users perspective)

No parameters are passed with the url, but can be if necessary, i.e. page name or pointer to name (or anything if this makes things easier).

I know you are busy, but I am after a fairly quick turnaround - clients in a rush etc, you know the rest ;)

I need to give you my private email address so we can discuss payment etc if necessary, and send files for you to look at. How do I do this ?

I very much appreciate your time and input on this.

And no, I'm not a Virginian :!: I'm from the UK. If remotely interested - I am the bald bloke on the left of the picture ...

I am proficient in PHP, but could do with help on the specifics of Javascript with this menu system.

I can send you whatever you need in terms of sample files etc. Please have a look at the link at the opening message of this topic to see what I am trying to achieve

Thanks in advance for your help.


Poster: kevin3442
Dated: Wednesday September 15 2004 - 21:36:09 BST

Hi Paul,

I'll have a look as soon as I get a chance. Meantime, I was wondering if you had considered putting your page content into an iframe? That way the page containing company header, footer, etc... and the menu, would remain the same while the menu selections would change the src of the iframe. Since the page containing the menu would not reload, your menu-state problem would be solved.

Just a thought.


Poster: paul.frear
Dated: Thursday September 16 2004 - 17:19:16 BST

Hi Kevin

Thanks for your reply regarding IFRAMES, this seems to have done the trick for now, panic over.



Poster: kevin3442
Dated: Friday September 17 2004 - 0:50:31 BST

Hi Paul,
paul.frear wrote:
...Thanks for your reply regarding IFRAMES...

You're welcome. It seemed like the easy way out. I have played with a way to re-open the tree when a new page reloads, but it's far from a complete project. I'll probably continue to play with it, just in case it's needed down the road (of course, by then, Andy will probably have worked it into the base code).



I want to do the same.

Poster: jeallen
Dated: Friday September 17 2004 - 19:33:17 BST

RE: The new url also contains the same menu system. I would like the menu to stay expanded if possible.

I want to do the same. I was hoping that I could combine with to accomplish this, but it doesn’t seem to work with collapsing menu.