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

hmmm - relative paths don't seem to work !


Poster: jellyfrog
Dated: Friday October 17 2003 - 12:13:40 BST

In menu_data.js I have the following line;

aI("text=About Us;url=about_us.htm/;");

which doesn't seem to work. The correct url opens in the browser window but nothin' appears until I hit the refresh button.

If I change this to

aI("text=About Us;url=http://www.mywebsite.com/;");

or

aI("text=About Us;url=http://www.mywebsite.com/about_us.htm/;");

then it works fine. Any reason ? or any fixes ?


Poster: bobwill
Dated: Friday October 17 2003 - 13:05:12 BST

Try adding a "/" in front of you "htm" file. Leave off the ending "/"

aI("text=About Us;url=/about_us.htm;");

If you have sub-directories that you want to access then you would use the following format:

aI("text=About Us;url=/sub-dir/about_us.htm;");


Poster: John
Dated: Friday October 17 2003 - 19:43:54 BST

Bob is correct.

Rule of Thumb...

When a directory is the last item in a URL, use a closing /.

When a file if the last item in a URL, never use a closing /.