Results 1 to 3 of 3

Thread: Jim's DHTML Menu v5.7 problems HELLLPPP

  1. #1
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jim's DHTML Menu v5.7 problems HELLLPPP

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

  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

    OK, in http://www.mareebamm.com.au/SQAdmini.../Directors.htm you have:

    Code:
    <script type="text/javascript" src="includes/browser.js">
    But that is not where it is, is it? It is really in:

    Code:
    <script type="text/javascript" src="../includes/browser.js">
    Another thing that you may want to do is make all your paths absolute. Like:

    Code:
    <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.
    Last edited by jscheuer1; 04-20-2005 at 01:41 AM.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

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
  •