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: Saturday July 14 2012 - 06:07:44

Submenus, unable to display simple html pages


Poster: tomandthecats
Dated: Monday September 2 2002 - 17:28:32 BST

Greetings,
I am a new user. I like this menuing system very much. My question probably has a very simple answer. I have configured a menu on the left side of my pages. I have many submenus. When I put the location of a page I want to open up in the "URL" space, I get a page not found.
Example:
addmenu(menu=["facility",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Entrance","facility/entrance.html",,,1

Is this the correct location for the page locator?

After further research, I'm finding that when I am in a nested page with the menu attached and I try and access a different page, the locator is telling me that it's trying to open up the page from the current nested location. Is there a way to configure the links to link back to the original location of the menu_array.js file?

Thanks
Tomcat


Poster: Scott
Dated: Thursday September 5 2002 - 13:36:59 BST

Almost there you just need to put a / before the subfolder..

eg

addmenu(menu=["facility",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Entrance","/facility/entrance.html",,,1


Good Luck


Poster: Hardi
Dated: Thursday September 5 2002 - 14:22:03 BST

Hi Scott,

I've still got the same problem, i can't make Absolute links because i don't know the exact location i'm saving the whole webpage in.

The slash thing does'nt work (still got the error), is there a option that tells the _array.js file to start from the Root???


Thanks,

Hardowin


Poster: Scott
Dated: Thursday September 5 2002 - 14:38:37 BST

OK..

the way I use this menu is..

[]- Parent folder
- index.htm
-[] Javascript folder (containing mmenu.js and menu_array.js
-[] Home (example folder 1)
-[] Links (example folder 2)

index.htm is a browser detection/redirection script that redirect to a page home.htm in the home folder, it does not display anything so doesn't call the menu.

The first page displayed is home.htm contained within the home folder. From here all other pages are accessible by the milonic menu. To get to a page held in the links folder (links.htm for example) the URL would be ../links/links.htm. To get to another page within the home subfolder (example.htm) the link would be ../home/example.htm.

Basically the ../ tells the browser to go back up a level and then look for the correct subfolder. As this could be accessed from any of the subfolders it's important to always use the ../subfoldername/filename format.

Hope this helps.
Scott


Poster: Hergio
Dated: Friday September 6 2002 - 16:25:17 BST

Actually its quite easy. I had the same problem as I am maintaining many pages that have the menu and as I add pages, they may be located in many different places. But depending on where your viewing the menu, a relative link would not work, hence the reason its called a relative link.

The work around to this is in the URL section of your menu item, instead of putting "/secondfolder/yourpage.htm", put "http://www.yourdomain.com/firstfolder/secondfolder/yourpage.htm". This will immediately fix your problem as where ever you are when you click the link, it will always be absolute and there is no guesswork. :idea:


Poster: Hardi
Dated: Friday September 6 2002 - 18:40:30 BST

Hi Hergio,

That with the Absolute link works fine...

But i'm making a page for the Intranet at work...

And sometimes the locations will change (Drive Nr, Main Folder) then you habe to change all the absolute Links...
Also when i rename the Url from my Homepage (if i make a page for the Internet)

i.e: http://www.homepage.swissonline/firstname

to

http://www.homepage.swissonline/secondname

That's why i want to use relative links.....

Hardowin :roll:


Poster: timmyboy
Dated: Friday September 6 2002 - 21:39:59 BST

In the project I'm working on I have two copies of the site on my machine both a little different because they were prepared for different servers, and one on a shared drive for the customer to review. All of the pages have both a top and side menu, the top menu being consistant site-wide and the side menu being specific to that particular section of the site.

I ran into the same issue of moving the site from place to place (to place . . . ). The side menus were fine because they were relative to the page but the top menu had to work over the whole site no matter where the page was located.

Because of this I started to keep the path name used at the very top of the page (using // to comment it out) When I need to change directories I use good ol' Notpad to go in, do a "Find and Replace" and that takes care of the change in a matter of seconds.

This has worked for me at least as a quick fix, if you find a better way please post it, but hopefully this will save you some work in the mean time.

~ tim <><


Poster: timmyboy
Dated: Friday September 6 2002 - 21:43:54 BST

In the project I'm working on I have two copies of the site on my machine both a little different because they were prepared for different servers, and one on a shared drive for the customer to review. All of the pages have both a top and side menu, the top menu being consistant site-wide and the side menu being specific to that particular section of the site.

I ran into the same issue of moving the site from place to place (to place . . . ). The side menus were fine because they were relative to the page but the top menu had to work over the whole site no matter where the page was located.

Because of this I started to keep the path name used at the very top of the page (using // to comment it out) When I need to change directories I use good ol' Notpad to go in, do a "Find and Replace" and that takes care of the change in a matter of seconds.

This has worked for me at least as a quick fix, if you find a better way please post it, but hopefully this will save you some work in the mean time.

~ tim <><