PDA

View Full Version : Another Jim Menu 5.7 - pointing to one single directory



Polishwonder74
04-27-2005, 07:21 PM
Lots of Jim menu questions today! My question shouldn't be too hard for you fellas. I'm trying to get all my html files to point to one single set of images & includes directories, instead of copying them into every directory in my tree. For some reason it's just not working. I've tried pointing to it by http address, and also by directory structure, and neither seem to work. Does anyone know what I could be doing wrong?


<script type="text/javascript" src="../includes/browser.js">
/***********************************************
* Jim's DHTML Menu v5.7- Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/

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


<script type="text/javascript" src="http://url/includes/browser.js">
/***********************************************
* Jim's DHTML Menu v5.7- Jim Salyer (jsalyer@REMOVETHISmchsi.com)
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and instructions
* This notice must stay intact for use
***********************************************/

</script>
<script type="text/javascript" src="http://url/config.js">
</script>

Does anyone know off of the top of their head what I could be goofing up? Everything looks kosher to me, but it's just not working.

/Man, I always do this, I always miss some mundane detail.

jscheuer1
04-28-2005, 02:19 AM
Your third approach is the best. Are you sure you have included the url and directory name? Also, with Jim's menu there is a configuration inside, I believe it is browser.js right at the top - the path to the includes directory, make that an absolute path as well. One other thing, in your config.js make all the paths in there absolute. These measures are needed when pages in different directories on your server access the same Jim's menu.

Absolute Path ex:

http://some.com/somedir/some.file

Polishwonder74
05-04-2005, 08:59 PM
This just isn't working out. I can put the config.js anywhere and point to it by directory structure, but http:// paths don't work, and it looks like I have to copy the includes and images folders into each directory. I can't seem to point to them unless they're sitting in the same directory as the html file that's displaying them. I'm using all absolute paths inside of the config.js file already and it's working well, so that's no problem. I just can't seem to 'cheat' and have this script work out of the same images and includes directories for the entire site.

I'm just trying to get out of adding an extra 140Kb to each directory by copying those 2 folders into each and every one (I've got quite a few). Maybe I need to just give up that dream. . .

Polishwonder74
05-04-2005, 09:53 PM
Ok, it seems that I can point the config.js to wherever I want, but the browser.js section ignores everything up until the includes/browser.js.

I have both absolute http:// addresses and file structure addresses, and they both work as long as the includes and images folders are sitting in the same directory.

jscheuer1
05-05-2005, 03:54 AM
Have you edited in the browser.js file to configure the includes directory with an absolute path? ex:


//---- Set this variable only! ----
var buildDir = "http://www.some.com/includes/";
//---------------------------------

And are you using the absolute path in your HTML files here:


<script type="text/javascript" src="http://www.some.com/includes/browser.js">And, in config.js, even these paths (if used):


"rollover:images/tri-down1.gif:images/tri-down2.gif"should be absolute.