PDA

View Full Version : Jim's DHTML Menu v5.7 problems HELLLPPP



atxa
04-20-2005, 12:15 AM
Hello, I am having problems getting this menu to work on pages that are not posted on the root directory of the web.

When i put the code on a page on the root directory it works fine however if i put the code in a page that is contained in a folder then it does not work

Here are expamples of the same page one works the other does not.

http://www.mareebamm.com.au/Directors.htm
http://www.mareebamm.com.au/SQAdministration/Directors.htm

IF i duplicate the includes folder, the config2.js and the image folder to the folder containg the page i want to use then it works however this seems like a horrible waste of space and i am sure their must be a better way

I suspect that i have to change some path statements or something somewhere however i don't know how, where or even the correct Sytntax.

Help Please

Atxa

jscheuer1
04-20-2005, 01:38 AM
OK, in http://www.mareebamm.com.au/SQAdministration/Directors.htm you have:


<script type="text/javascript" src="includes/browser.js">

But that is not where it is, is it? It is really in:


<script type="text/javascript" src="../includes/browser.js">

Another thing that you may want to do is make all your paths absolute. Like:


<script type="text/javascript" src="http://www.mareebamm.com.au/includes/browser.js">

This approach is best for all configurable paths in config2.js and browser.js (there is only the one in browser.js) as well. That way, no matter where a page is on your website, when it looks for a file or page associated with and/or called from this script, it will know 'absolutely' where it is.

atxa
04-21-2005, 06:10 AM
Many thanks,

I changed all the paths to absolute as suggested, and it worked..
PS i also has to change the paths in the COnfig.js for the images to absolute paths and bingo ....

Once Again many Thanks

Peter Acha