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

Menu won't appear


Poster: annasue
Dated: Thursday April 14 2005 - 23:40:59 BST

I just purchased and installed Milonic menus.

I copied the 4 .js files to my server site to a directory called "menus".

I edited the paste-in code to have "menus/" prior to each .js filename.

I put the code into a file http://www.willowbrook.org/menus/testmenus.htm

The menus aren't appearing.


Poster: Ruth
Dated: Friday April 15 2005 - 1:18:17 BST

The calls are incorrect. The page is looking for a path of menus/menus/milonic_src.js etc. because the menu files are already in the same folder as the page.

Ruth


Poster: kevin3442
Dated: Friday April 15 2005 - 3:02:26 BST

To address the problem Ruth spotted, try using /menus/ instead of menus/ in the path name to the .js files.

Kevin

Menus not appearing


Poster: annasue
Dated: Friday April 15 2005 - 12:55:05 BST

Thanks, Kevin, the /menu/ did the trick. I'm sure the first suggestion would have worked also.

I'm excited about using this product.

Anna sue


Poster: kevin3442
Dated: Friday April 15 2005 - 23:47:49 BST

Hi Anna Sue,

Just to clarify, the two suggestions are pretty much the same thing. The problem was that menus/ is a "document relative path", essentially telling the browser to look for a folder named "menus" within the folder that the htm document was loaded from. So, by having your testmenus.htm file in the "menus" folder, the document relative path to your .js files ended up being "http://www.willowbrook.org/menus/menus/". By placing a / as the front of the path name, i.e., /menus/, you tell the browser that you want to use a "root relative path", i.e., it's relive to the root or "starting point" of your site, which in your case is http://www.willowbrook.org/ . So, by using /menus/ you're telling the browser that, no matter where the currently loaded document came from, look for the file in the /menus/ folder that branches off of http://www.willowbrook.org .

You can also use an absolute path, which includes the domain name. For example, the absolute path to your "menus" folder is http://www.willowbrook.org/menus/ .

You'll find that the terminology will vary, depending on who writes about relative vs. absolute paths. But it's the concept that's important to understand. Here's a good discusison of paths:

http://www.communitymx.com/content/arti ... ?cid=230AD

Cheers,

Kevin