Navigation Within a Site

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jeberlan
Beginner
Beginner
Posts: 2
Joined: Tue Sep 07, 2004 8:32 pm

Navigation Within a Site

Post by jeberlan »

In windows I can create a "webshare" on any folder, then do what I call Top-Down addressing in the menu. For example, if I create a webshare called somesite I can then use a url address like url=/somesite/somefolder/someotherfolder/somepage.htm. By starting with a / I go to the top of the site then move down from there. But when I move this to the host I don't seem to be able to do this. On the host it seems that all addressing is relative to the folder I happen to be in at the time. Am I missing something?
I can change the code to url=http://www.somesite.com/... but this will not work for navigating within the pages on my PC as the first version does. Is there someway to code this that will work for both the dev. pc and the host?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Your PC must be set up exactly the same as the server or it will, as you see, fail. Server-relative addressing (the leading /) starts at the root level, be it server or local PC, and goes from there. If set up properly it should work fine in both places.
John
jeberlan
Beginner
Beginner
Posts: 2
Joined: Tue Sep 07, 2004 8:32 pm

Post by jeberlan »

On the PC I created a name to refer to the server. How do I "name" the host's Server?
I could put this in inetpub/wwwroot but I've got two different websites I'm developing on this pc. I can't put them both in the wwwroot folder.
Post Reply