Results 1 to 5 of 5

Thread: Another Jim Menu 5.7 - pointing to one single directory

  1. #1
    Join Date
    Apr 2005
    Location
    Syracuse, NY
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Another Jim Menu 5.7 - pointing to one single directory

    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?

    Code:
    <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>
    Code:
    <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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Location
    Syracuse, NY
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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. . .

  4. #4
    Join Date
    Apr 2005
    Location
    Syracuse, NY
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Have you edited in the browser.js file to configure the includes directory with an absolute path? ex:

    Code:
    //---- Set this variable only! ----
    var buildDir = "http://www.some.com/includes/";
    //---------------------------------
    And are you using the absolute path in your HTML files here:

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

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •