SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2001
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shared borders, but not with frontpage...

    I'm trying to find out how to have shared content through out my site. I have a header, left column, and a right coloumn that i want to show up on every page with only the middle coloumn to change content when nav links are clicked.I have over 30 pages and need to have one page that will update all of them.

    I know front page has something called shared borders, but i'm working in adobe golive. Is there a standard way to apply this "shared borders"? and not by using frames!

    Here is an example of what my site will look like

    http://www.rbr.com/newrbr/pages/borders.asp

    Here is an example of the "shared borders in action

    http://www.mstreet.net

    I checked the code on their page but cannot find anything that shows how to do this.

    Any help would be greatly appreciated!!

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use php or ASP to create your common headers, footers and really, all the other shared portions of the page.

    sketch
    Aaron Brazell
    Technosailor



  3. #3
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm..what about using SSI (Server-Side Includes), this way you have one file included in every page. So whenever you make a change to your header, then you change one file, then the change will be visible at every page. Same goes for the navigationbars.

    That way it would LOOK like only the content changes but you would actually visit a different page. Same thing happens on the site you provided.

    Here's a SitePoint Article on SSI.
    Jeroen Mulder

    w: www.jeroenmulder.com

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2001
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sketch-
    i figured i'd probably have to use asp code but i'm having trouble finding info on the search engines about that specific topic.

    mulder-
    that SSI peice is sweet and i thought that was the answer but...
    the article said all pages must use shtml extensions. my boss is using an ad manager software(which he paid too much money for and wont change) that requires the pages to be asp extensions.

    Any links to asp code specific to this "shared borders"?

    Thanx for the help.

  5. #5
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dhtmlgod will be able to help you on that
    Jeroen Mulder

    w: www.jeroenmulder.com

  6. #6
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i know absolutely NOTHING about ASP. I avoid it like the plague. I use php.

    sketch
    Aaron Brazell
    Technosailor



  7. #7
    SitePoint Enthusiast
    Join Date
    Oct 2001
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well its almost 5:00 and i'm goin out of town for the weekend so i'll try to find him monday.

    Thanx again for the help!!

  8. #8
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ASP has include functions:
    http://www.w3schools.com/asp/asp_incfiles.asp

    If you already use ASP on your site, then just use those.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  9. #9
    SitePoint Enthusiast jlgarcia's Avatar
    Join Date
    Sep 2001
    Location
    Baja California, México
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The sintaxis is slightly different from the one in Apache and works if the file has an ASP extension.

    From the help files in IIS:

    #include
    The #include directive instructs the Web server to insert the contents of a file into an HTML page. The included file can contain any content that is valid within an HTML document. You must surround a directive with HTML comment delimiters.

    This directive can be used in both ASP pages and HTML pages.

    Syntax
    <!-- #include PathType = FileName -->

    Parameters
    PathType

    Specifies the type of the path to FileName. The path type can be one of the following:

    Path Type Meaning
    File The file name is a relative path from the directory containing the document with the #include directive. The included file can be in the same directory or in a subdirectory; it cannot be in a directory above the page with the #include directive.
    Virtual The file name is a full virtual path from a virtual directory in your Web site.


    FileName

    Specifies the name of the file to be included. FileName must contain the file name extension, and you must enclose the file name in quotation marks (").

    Remarks
    The file containing the #include directives must use a file name extension that is mapped to the SSI interpreter; otherwise, the Web server will not process the directives. By default, the extensions .stm, .shtm, and .shtml are mapped to the interpreter (Ssinc.dll). If you have Internet Services Manager installed, you can modify the default extension mappings and add new mappings; see Setting Application Mappings. Included files can have any file name extension, but a recommended practice is to give them the .inc extension.

    Examples
    <!-- The included file is in the same directory as the parent file. -->
    <!-- #include file = "myfile.inc" -->

    <!-- The included file is in the Scripts virtual directory. -->
    <!-- #include virtual = "/scripts/tools/global.inc" -->






    http://www.microsoft.com/windows2000...re/iisiinc.htmASP
    Use the source, Luke...

  10. #10
    SitePoint Enthusiast
    Join Date
    Oct 2001
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    WOW!!

    You guys are the coolest!

    Ask and ye shall receive!!

    Thank You for taking the time to help!!

    You just dont know how much i appreciate this.

    sweet!!

    Thanx again fellas
    Last edited by Irishdego; Oct 28, 2001 at 21:04.


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
  •