Problem implementing frames menu with v5

"Paul Grogan" <[email protected]> Wed, 1 Oct 2003 12:52:13 +0100
Newsgroups gmane.comp.web.milonic
Message-ID <[email protected]>
After a long break of playing around with this menu, I'm back and trying to
get it to work.  Despite popular opinion, I still want to use frames, (I
dont like the idea of my pretty header bar having to be on every page I do.)

Anyway, I've downloaded all the version 5 stuff and half of it confuses me
(I am a complete beginner), but I have also downloaded the frames based
sample from http://www.milonic.com/menu/frames/frames.zip

My first question is, Is this compatable with v5 of the menu, because a lot
of the stuff in it looks very different.

I have managed to get my horizontal menu to appear in my top frame.  And I
have got the sub-menu's to appear at the top of the bottom frame, (which
took me hours because I dont really know what I'm doing :) ).

The frames_header_array.js should only contain the menu items  that appear
on the initial menu. I got that bit.
And the name of the sub-menus that appear in the frames_body_array.js go
under show-menu.

An example line looks like this

,"Testmenu1&nbsp;&nbsp;","show-menu=test1
target=main;sourceframe=main;",,"#",1

First of all, is this right? As the new v5 menu system seems to call it
"showmenu" without the hyphen.
Also, what is the difference between target and sourceframe?

Anyway, onto the main question.  I have got my menu to appear, and I have
got my sub-menus to appear.  And, I have also got my sub-sub menus to
appear.  However, I cant get any of the links to work at all.   First of
all, I have a main menu option that says "This menu courtesy of".  When you
mouse-over it, a submenu appears in the frame below saying "Milonic". And
when you click on that it should take you to the Milonic  homepage, in a new
window.

So, my line in the frames_header_array.js reads
,"This menu courtesy of&nbsp;&nbsp;","show-menu=milonic
target=main;sourceframe=main;",,"#",1

and in the frames_body_array.js

addmenu(menu=["milonic",
,,100,1,"",plain_style,,"left",effect,,,,,,,,,,,,
,"Milonic","url=http://www.milonic.com","target=new",,0
])

but when I click on it, it just comes up with "This page cannot be
displayed" in the main frame.

So, its not opening it in a new window, and not finding the page.

Much of my confusion has come about because the new v5 menu system uses
lines such as

aI("text=Apache Web Server;url=http://www.apache.org/;status=Apache Web
Server, the basis of Milonic's Web Site;");

in the menu_data.js file, whereas the old frames menu uses a completely
different format, and I seem to be getting myself tied in knots, spending
hours fiddling around and not getting it working.

Any help (apart from saying "Dont use frames"), greatly appreciated.

Thanks


Paul Grogan

"Everything that has a beginning, has an end"