I need to specify base URL variable

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
abarsami
Beginner
Beginner
Posts: 2
Joined: Thu Apr 22, 2004 9:07 pm

I need to specify base URL variable

Post by abarsami »

I have these pages

http://root/folder1/default.asp
http://root/default.asp

If I put for the URL links:

default.asp
folder1/default.asp

Then if I click on the 2nd link that goes to folder1/default.asp, and I then click on the 1st link that goes to default.asp. It can't find the page.

Does this mean I have to use the full path? http://root/default.asp instead of default.asp?

If so, Is there someplace I can declare the root path as a variable, then I just call that path in the menu_data.js

strRoot = "http://root/"

Then in menu_data.js I use:
url=strRoot & WebForm1.aspx
abarsami
Beginner
Beginner
Posts: 2
Joined: Thu Apr 22, 2004 9:07 pm

Post by abarsami »

I had to use url=/

Never mind.
Post Reply