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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:18

Show the menu in another frame..

Poster: gasp
Dated: Monday November 11 2002 - 7:49:10 GMT

In the "frame-example" you open the "frames_body_array" via the "frames_header_array" with the code: "Languages","show-menu=languages target=main;sourceframe=main",,"#",1.

But how can I open a menu in a different frame with a "link" (like the "Link/Image Based - Static") instead of another menu? tnx

Poster: trytrix
Dated: Monday November 11 2002 - 19:13:03 GMT

But how can I open a menu ....
.... instead of another menu ?

A menu is always a menu, isn't it ?


Poster: gasp
Dated: Monday November 11 2002 - 19:41:32 GMT

a menu in another frame.. two different menus..

Poster: trytrix
Dated: Monday November 11 2002 - 21:59:59 GMT

Hi again,

When frames are used on a site one normally need to use the targetting technics to address submenus into a different frame !
You could use direct menu settings (no xxxx.js includes) in your html page ... For example :
,"Internet ,"Mozilla"," target=main;sourceframe=main",,,1
,"Netscape 6"," target=main;sourceframe=main",,,0
,"Netscape 4.7"," target=main;sourceframe=main",,,0
,"Opera"," target=main;sourceframe=main",,"This is some status text",0
although I can't guarantee it will work error-free !!



Poster: kevin3442
Dated: Wednesday November 13 2002 - 23:55:30 GMT

Hi gasp,

I think I get what you're after... The user clicks a static <a> link in one frame, causing a menu to open in a different frame. The static link examples use the popup() function, so I guess you'll need some variation on that. Problem is, it doesn't look like you can specify a target and a sourceframe in the call to popup(), so it looks like popup() has to be called within the same scope as the menu it is intended to open. Fortunately, since you load mmenu.js in any frame that contains a menu, the popup() function is already in the frame where you want the menu to open. You just have to make your link call the function in the correct frame, like so:
<a href="javascript:parent.TargetFrameName.popup('menuname')">open menuname</a>

where TargetFrameName is the name of the frame where you want the menu to open, and menuname is the name of the menu that you want to open. To ensure that the menu opens where you want it to, make sure you set the Top and Left positions in the menu arrays that define each menu in the target frame (the 2nd and 3rd elements of the menu array).

I did a quick test and this works in IE6.

Hope that helps,