46 users online (0 members and 46 guests)  

Thread: Questions...


  Results 1 to 2 of 2

Related

  1. some php questions    Forum: PHP Forum
    Replies: 0
  2. 3 questions    Forum: CGI Perl Forum
    Replies: 2
  3. How to do this in CSS? A few questions.    Forum: CSS Forum
    Replies: 0
  4. Six Questions    Forum: HTML Forum
    Replies: 4
  5. Some questions...    Forum: HTML Forum
    Replies: 10
  1. #1
    gt24's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2001
    Location
    Carrollton, Ohio
    Posts
    1

    Post Questions...

    I have been developing a website for my HS marching band for about a year and a half now. The URL is http://chsband.cjb.net/ in case you are curious. I have a navagation frame on the left that is inserted via tables. Frames are generally something I hate to run into on the internet, mainly because the contents of frames do not scroll with the main content area of the page and require scroll bars to be placed within each frame to see all contents. How does webmasters for sites such as this one update their navigation bar without spending several days tracking down each page!??!

    Thanks for your answer in advance.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya gt, welcome to the forums mate.

    The easiest way to acheive this is to use some kind of include. There are many, but the easiest to start with (and the most likely to be supported by your host) is Server Side Includes, or SSI.

    This is how they work -

    I have a page with just my menu in, no <head> tags, no <body> tags, just the html for my menu. I call this menu.html .

    I can include this page with an SSI command, like this

    Code:
    <!--#include virtual="menu.html" -->
    Note the space between " and --> . important not to forget.

    Sounds simple, doesnt it? But there is a catch..

    because 'parsing' a webpage to look for SSI commands is quite hard work for the server, it doesnt do it for ALL pages. It will only do it for pages with this extention -

    myincludepage.shtml

    So try a little test, make a *.shtml page and try an insert.

    The advantages are obvious..once you change menu.html it updates EVERY page that it is included in.

    Hope thats clear...i have a hangover so if anything is not clear just post and I'll try to sober-up enough to explain it properly.

    Cya mate,
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread