I need to make the menu script path document relative

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
curtis
Beginner
Beginner
Posts: 2
Joined: Sun Jun 20, 2004 7:20 pm

I need to make the menu script path document relative

Post by curtis »

Hiya

I've just stated using v5 and I've hit upon a snag. I need to make the path to the script relative to the document via the root. When I was using v3 it was very simple eg

../script/mmenu.js

for some reason the javascript strips out the ".." bit from the first and last script lines that are needed to run the menu.

Any ideas on how to solve this?

thanks


Curtis
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Take it from the slash /path/myfile.html

No need for dots.

maz
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

It all depends where you have your JS in relation to your 'root' folder and how you call it.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
Post Reply