menu not showing online
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
menu not showing online
Hi,
I recently purchased an dhtml menu from your site but am having difficulties publishing it online. It works fine on my desktop but as soon as it gets uploaded it ceases to work. I have it embedded in a table and the javascript files are in the 'menu' folder. What directories do I need to change in the javascript files? I know i need to declare a scriptpath variable and assign it a value of "/menu/", but is that all that needs to be done???
In case I haven't been specific enough the site can be found at http://www.gabrielaartigas.com/alex_restaurant/alex.htm
Any support would be GREATLY appreaciated.
Thank you,
Rod
I recently purchased an dhtml menu from your site but am having difficulties publishing it online. It works fine on my desktop but as soon as it gets uploaded it ceases to work. I have it embedded in a table and the javascript files are in the 'menu' folder. What directories do I need to change in the javascript files? I know i need to declare a scriptpath variable and assign it a value of "/menu/", but is that all that needs to be done???
In case I haven't been specific enough the site can be found at http://www.gabrielaartigas.com/alex_restaurant/alex.htm
Any support would be GREATLY appreaciated.
Thank you,
Rod
I know you coded as is shown in the examples, but some of us have been having trouble with that. Try this instead...
Move the call to milonic_src.js as the first item after <body>.
Move all the Main Menu code back to menu_data.js.
Put only the call to menu_data.js in the <td> where you just removed the menu code.
Move the call to milonic_src.js as the first item after <body>.
Move all the Main Menu code back to menu_data.js.
Put only the call to menu_data.js in the <td> where you just removed the menu code.
John
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
Yes, exactly.
You also might want to consider making your calls 'server relative'; i.e., instead of...
...change it to...
Note the / added before menu.
This will allow you to use the same code no matter what the depth (directory levels) of your site. Prevents things like ../menu, ../../menu, etc.
You also might want to consider making your calls 'server relative'; i.e., instead of...
Code: Select all
<SCRIPT language=JavaScript src="menu/milonic_src.js" type=text/javascript></SCRIPT>
Code: Select all
<SCRIPT language=JavaScript src="/menu/milonic_src.js" type=text/javascript></SCRIPT>
This will allow you to use the same code no matter what the depth (directory levels) of your site. Prevents things like ../menu, ../../menu, etc.
John
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
You can still do that when ol' dummy here gets around to giving you the right answer!
Server relative, as the name implies, means making your paths from the server - I cut you one directory short.
So...
scriptpath="/alex_restaurant/menu/";
This assumes /menu/ to be at the same level as alex.htm.
Same would be true for your calls...
<SCRIPT language=JavaScript src="="/alex_restaurant/menu/milonic_src.js" type=text/javascript></SCRIPT>
etc.
Server relative, as the name implies, means making your paths from the server - I cut you one directory short.
So...
scriptpath="/alex_restaurant/menu/";
This assumes /menu/ to be at the same level as alex.htm.
Same would be true for your calls...
<SCRIPT language=JavaScript src="="/alex_restaurant/menu/milonic_src.js" type=text/javascript></SCRIPT>
etc.
John
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
-
- Advanced
- Posts: 14
- Joined: Wed Sep 10, 2003 8:28 pm
- Location: Los Angeles
hmmm...two out of three ain't bad but I don't know if the client will agree! This is my first site with dhtml menus and so far I like how easy it is to organize content. Particularly with indecisive clients that are always adding or removing content. These menus give me the flexability of adding more content with just simple code. I thought the imcompatabilty issues had been taken care of at this point but I guess I'm wrong.