Is there a way to use menus locally

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
mperemsky
Beginner
Beginner
Posts: 9
Joined: Tue May 06, 2003 3:47 pm
Location: USA
Contact:

Is there a way to use menus locally

Post by mperemsky »

I can get my menus to work when I have them on my website, but cannot get them running locally. Is there a way to specify the base directory for working locally so that it can properly define the paths to the images and js files?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The easiest way is to have your local site set up the same as the structure on your host. Another benefit to this is you don't have to constantly re-think what's where when you move from local to remote.
John
mperemsky
Beginner
Beginner
Posts: 9
Joined: Tue May 06, 2003 3:47 pm
Location: USA
Contact:

Is there a way to use menus locally

Post by mperemsky »

Thanks. That works as suggested, but I was hoping that I would not have to move my directory around. I try to keep my websites under the 'My Webs' directory so that I do not clutter up my root level with yet more directories.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Trust me, I do understand what you mean by 'clutter'. Things can get mesy pretty fast, but then sometimes the messy way is the better way :!:
John
Ian C
Beginner
Beginner
Posts: 4
Joined: Thu May 08, 2003 8:27 am

Post by Ian C »

I have been trying to use the menu on my local site on my HD but cannot get it to work either.

Can you clarify this a bit more. I've got a bit lost.

Ian C
Ian C
Beginner
Beginner
Posts: 4
Joined: Thu May 08, 2003 8:27 am

Post by Ian C »

I have been trying to use the menu on my local site on my HD but cannot get it to work either.

Can you clarify this a bit more. I've got a bit lost.

Ian C
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

There is a specific directory structure for your site at your ISP. You write your code to match that structure so things can be found when called (e.g., the location of your images folder, where you keep your menu .js files, etc.). You need to duplicate that structure on your HD so things will work locally.

You made a reference to "My Webs" directory, which gives me the shivers because it makes me think you are using FrontPage. If so, be extremely careful when editing the .js files. FP can, and does, do terrible things to JS (not to mention HTML) behind your back.
John
mperemsky
Beginner
Beginner
Posts: 9
Joined: Tue May 06, 2003 3:47 pm
Location: USA
Contact:

Post by mperemsky »

Yes, the directory originally did come from FP, but I do not use it. I used it on a large site I had because it updated my links for me, but back to the point here.

If you have a site (e.g. http://www.geocities.com/mperemsky) then you can create a directory off of your root drive named mperemsky. Within your HTML code make references to objects specifying the path to the file. Let's say I have a directory structure as follows:

/mperemsky
/images
/js
/css
/menu

then I would have my links such as

<SCRIPT language="JavaScript" src="/mperemsky/menu/mmenu.js" type="text/javascript"></SCRIPT>

or in the menu_array.js images should be referenced as /mperemsky/images/imagename
Ian C
Beginner
Beginner
Posts: 4
Joined: Thu May 08, 2003 8:27 am

Post by Ian C »

Thanks guys. I was doing this but had the path wrong in something which caused the problem. All fixed now and works like a charm

Ian C
Post Reply