Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Menu from external file without SSI/PHP

    The menu I have on the site listed below has a menu that will be come very long because I will have over 100 items listed in several of the sections.
    URL Removed by moderator. Note: In the future if you will be linking to a site of adult content, post code instead of a link.... I will be working on limiting the length and adding a scrollbar at a later time.

    Because the menu will be getting so large, I don't what the menu code in the html. I would like to be able to update the menu without updating every page that the menu is present on (hundreds). Unfortunately, my server host does not allow SSI/PHP.

    I am a definite newbie here so I did a search through the threads and found the following:CF Thread but I couldn't get it to work for me.

    How can I get my menu to load from an external file that I can update daily without pulling my hair out?

    The menu is based upon this example, so if you want the code I used, I suggest using the code shown there. It's smaller and not as customized as mine.Collapsable Vertical Tree Script

    I would appreciate any help you can give.

    Thanks.
    Last edited by sage45; 03-14-2005 at 06:05 PM.

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Does your ISP support perl? It possible that you could have something suitable written in it.


    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know. I will find out.

  • #4
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope. No perl allowed.

  • #5
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Even if the menu itself is in the main HTML, that would be fine. Perhaps there is a way to just get the various lists from another file? I guess that isn't possible without SSI?
    Last edited by cbouchar; 03-13-2005 at 07:59 PM.

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Sounds to me like they're stretching the term service provider Maybe its time to move to another?

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #7
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can't. They are not only the providers of the server, they are also the providers of the content I am trying to sell. Need to be with them if I want to use their content.

    On another matter, any ideas about the menu problem I am having?

  • #8
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,791
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Slap this where you have your links now.

    <script language="javascript" type="text/javascript" src="http://YOUR URL/link.js"></script>

    your link.js file

    <!--
    document.write('Everything between the ' ' is written like noraml HTML. You can just move all your links into them.');
    //-->

  • #9
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Am I supposed to use Single quotes or Double quotes? This Thread says to use Double, but you are showing single. I used double quotes when I tried before, could that be why it didn't work for me?

  • #10
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,791
    Thanks
    8
    Thanked 131 Times in 129 Posts
    I used single quotes in this file:

    http://www.borderlandrelics.com/scripts/link.js

    and it works fine.

    Not sure about the double quotes.

  • #11
    New Coder
    Join Date
    Mar 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Happy happy Joy joy. Thank you for that HarbingerOTV. That was exactly what I needed. The Double-quotes were messing everything up.

    cbouchar


  •  

    Posting Permissions

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