Server Side Include (SSI) for Top Border (Header) Menu

Following-up on a previous post, I have created a test menu for my test page so that I can make a change once in my website menu and have it automatically populate throughout the site.
So, I created the menu as a file, "Aloe_Top_Menu.asp" (it is using DW's Spry Menu 2.0 and I am using DW CS5) saving it as an .asp file.
When I then insert it anywhere on my test page (see line 150 on the page:  www.aloe-vera.org/test.htm ) it does not appear.
I have put it in the <head></head> area as suggested by another user (Nancy, thanks for all your help btw).  In between the body tags.  Nothing seems to work.
I've also tried it in what would be the "header" area of the page, nada.  So I tried in the regular content of the page.  Nothing there, either.
It's frustrating beyond belief.  And I sure wish the good folks at Adobe would have made it so one could work on it in "Display" view.  Alas, I can work in code only view just fine.  But don't want to spend needless hours on it, if I cannot get it to appear on the uploaded site, at the top of each page!
For suggestions, I am "all ears."  Thanks, David

Your menu include file should contain nothing more than a list of links. That's it.  Very simple.  And links are relative to the parent page.
You can name include files anything you wish.  menu.foo  menus.ssi or menu.whatever.  The extension doesn't matter here.
Your parent page -- the page on which your menu will appear, needs to be named index.asp to tell your server to parse content from the include file.
<div id="menu">
<!--#include virtual="Includes/menu.foo" -->
</div>
Finally, your parent page must contain all the supporting CSS files, scripts and functions to make your Spry Menus work.
Does this make sense?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • XHTML Server side includes (SSI)

    I relized that Contribute CS4 does not render include virtual (SSI) calls when the files are .xhtml. If I change the includes to .html it will render the includes in the Edit view. Is there anyway (like maybe a extentions.txt,) to get contribute to treat thease as regular HTML files?

    I think you may be able to depending on the server you're using. If you're using apache, you may be able to write a .htaccess rule that will serve up the .xhtml as .html when Contribute connects to it.
    What type of connection are you using? FTP, WebDAV, etc?

  • Dreamweaver previews first Server Side Include Only (SSI)

    Dreamweaver CC and 2014 preview the first Server Side Include (SSI) only, even if the Adobe extension is installed (Using the SSI extension in Dreamweaver to create page headers | Adobe Developer Connection)
    How do I set Dreamweaver to preview multiple (more than one) SSI's?
    Example Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <!--#include virtual="/content.shtml" -->
    <!--#include virtual="/content2.shtml" -->
    </body>
    </html>
    The code above will preview the text in "Content.shtml" but will not display the text in "content2.shtml".
    For troubleshooting purposes, I have reduced the content in each file to only single lines of basic text.
    Please advise. Thanks.
    Update:
    Dreamweaver Live View will show all of the server side includes. However the "Design View" and "Preview in Browser" will only show the one ssi.
    The following Preference settings are enabled:
    -Preview using temporary file
    -Show contents of included file
    Update 2:
    I discovered that server side includes have been removed from the Dreamweaver interface, inferred from this article: A Look at the Modernized Dreamweaver CC : Adobe Dreamweaver Team Blog. If Server Side Includes were removed, can they be added again using the Server Behavior extension?

    The issue is fixed in Dreamweaver 2014.1

  • Cannot Preview Server Side Includes in Browser

    I am working on building a new site using server side
    includes for the main header graphic and menu items. For testing
    purposes, I created an .html file with one <div> tag
    containing a single graphic and an .shtml file with the server side
    include code placed in the <head> area. (Doesn't seem to work
    if I place it anywhere within the <body> tag... not sure
    why). At any rate, I can see the SSI in the design view of my
    document, but cannot see it whenever I go to preview the page in my
    browser (Firefox 2.0.0.3). Everything works fine if I upload the
    files to my Web server and view them that way, but why can't I see
    the SSI when working on my local files? The Dreamweaver help files
    explain that I should be able to do so, but it's just not working.
    Well, I'm now at a loss and cannot figure out if I'm doing
    something wrong of if this is just a bug of some kind. Can anyone
    help me to solve this problem so that I can get back on track?
    Much appreciated,
    ~Greg

    >I am working on building a new site using server side
    includes for the main
    > header graphic and menu items. For testing purposes, I
    created an .html
    > file
    > with one <div> tag containing a single graphic and
    an .shtml file with the
    > server side include code placed in the <head>
    area.
    This is not going to work at all. You cannot place body HTML
    in the <head>
    region.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Myrrhlin225" <[email protected]> wrote in
    message
    news:f1hdmh$clh$[email protected]..
    >I am working on building a new site using server side
    includes for the main
    > header graphic and menu items. For testing purposes, I
    created an .html
    > file
    > with one <div> tag containing a single graphic and
    an .shtml file with the
    > server side include code placed in the <head>
    area. (Doesn't seem to work
    > if I
    > place it anywhere within the <body> tag... not
    sure why). At any rate, I
    > can
    > see the SSI in the design view of my document, but
    cannot see it whenever
    > I go
    > to preview the page in my browser (Firefox 2.0.0.3).
    Everything works
    > fine if
    > I upload the files to my Web server and view them that
    way, but why can't
    > I
    > see the SSI when working on my local files? The
    Dreamweaver help files
    > explain
    > that I should be able to do so, but it's just not
    working. Well, I'm now
    > at a
    > loss and cannot figure out if I'm doing something wrong
    of if this is just
    > a
    > bug of some kind. Can anyone help me to solve this
    problem so that I can
    > get
    > back on track?
    >
    > Much appreciated,
    > ~Greg
    >
    >

  • Server side includes: outdated and not supported by host?

    I've been using SSI's for ages with no problem from any host. Recently I signed up with a new web hosting company, one of the more established ones in the Seattle area. They do not support SSI's and claim that using them is not safe and is not a modern approach to web design. They suggested I use a more advanced programming language to create my sites, such as ASP.NET (something I have no desire to do).
    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    -Jesse

    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    That language is from Microsoft who seem to think so along with Windows based hosting providers offering ASP.NET.
    IIS no longer comes with SSI installed by default. It has to be configured by the hosting provider.
    http://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes- ssi-syntax-kb-203064-revisited.aspx
    However, classic SSIs (in the sense of including static content from one page inside another) are still one of the most powerful, safe and flexible tools for managing repetitive page elements in any web page. Not to mention easy.
    ASP.NET has its own way of doing the equivalent of SSIs - and lots more beside but much of which does not interest web designers at this stage.
    http://stackoverflow.com/questions/894720/asp-net-equivalent-of-server-side-includes
    http://searchsoftwarequality.techtarget.com/answer/Alternatives-to-server-side-includes-fo r-ASPNET

  • WLS5.1 (Sp5)/Netscape 3.6 & Server Side Includes

    We are trying to dynamically create a reference to a server side
              include(ssi) in a JSP rendered
              by the Weblogic servlet engine. Unfortunately, the combination of WLS and
              netscape is treating the dynamically generaetd ssi as a comment (instead of
              forwarding the server side include to the netscape webserver for further
              evaluation or actually resolving the server side include).
              Has anyone encountered a similar problem i.e. attempting to have the SSI
              resolved in the proxy webserver instead of having weblogic simply interpret
              and forward the ssi as a comment?
              We're using Weblogic 5.1, Netscape Enterprise Server 3.6.
              Thanks
              

    We are trying to dynamically create a reference to a server side
              include(ssi) in a JSP rendered
              by the Weblogic servlet engine. Unfortunately, the combination of WLS and
              netscape is treating the dynamically generaetd ssi as a comment (instead of
              forwarding the server side include to the netscape webserver for further
              evaluation or actually resolving the server side include).
              Has anyone encountered a similar problem i.e. attempting to have the SSI
              resolved in the proxy webserver instead of having weblogic simply interpret
              and forward the ssi as a comment?
              We're using Weblogic 5.1, Netscape Enterprise Server 3.6.
              Thanks
              

  • JSP in place of server side includes

    I would like to know what is a server side include and why is it that JSP is preferred to server side includes.

    SSI is used to paste external parts into static HTML Pages and only for simple
    things (not for programs, database accesses,..)
    JSP is much better, because you can use a rich toolkit (JDK), can manipulate the HTTP-answer in more flexible manner as SSI, and all advantgaes of JAVA.
    Regards,
    Geri

  • Server Side Includes and Javascript

    Can one safely include javascript in a server-side include
    (SSI) file? It seems to work but don't know if it will create
    problems down the line. I am using a roll-over navigation bar
    created and generated in Fireworks. It seems to defeat the purpose
    of using SSI if you can't include the javascript since if there was
    a change at some point to the navigation bar you would have to
    change the javascript that went with it. And it is nice to keep all
    that extra coding out of every file on the site. IS there an
    official word on this or some process in creating a SSI file that
    could prevent any problems?
    You can see the file I created using this at
    http://www.hopkinsandporter.com/test.shtml

    > Can one safely include javascript in a server-side
    include (SSI) file?
    Yes, but it makes your parent page's derived code messy.
    > I am using a
    > roll-over navigation bar created and generated in
    Fireworks.
    This is a big mistake for so many reasons.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "TSemmes" <[email protected]> wrote in
    message
    news:e52id2$pt1$[email protected]..
    > Can one safely include javascript in a server-side
    include (SSI) file? It
    > seems
    > to work but don't know if it will create problems down
    the line. I am
    > using a
    > roll-over navigation bar created and generated in
    Fireworks. It seems to
    > defeat the purpose of using SSI if you can't include the
    javascript since
    > if
    > there was a change at some point to the navigation bar
    you would have to
    > change
    > the javascript that went with it. And it is nice to keep
    all that extra
    > coding
    > out of every file on the site. IS there an official word
    on this or some
    > process in creating a SSI file that could prevent any
    problems?
    >
    > You can see the file I created using this at <a
    target=_blank
    > class=ftalternatingbarlinklarge
    > href="
    http://www.hopkinsandporter.com/test.shtml">http://www.hopkinsandporter.co
    > m/test.shtml</a>
    >

  • Spry accordion widget - SSI (server side include) as content in the panel

    After having inserted the following command <!--# include file = "content2.asp" -> in the accordion Panel Content I get an error in Dreamweaver - every time I open the file. See the error in the attached picture.
    Once all files are uploaded to the server it works apparently without problems or script errors.
    Is there anyone who can help me to use SSI "server side include" as content in accordion panels?

    Thanks for your reply.
    The fault lay in the SSI file. This file contained these tag:
    </ html>
    And of course the tag </ html> generate an error if the tag is inserted in the content of the accordion panel via ssi file.

  • Server Side Includes for Apache and parsing text files

    I have an old website I used to do zipped up and I decided to set it up on my personal webserver in OS X . I got apache configured to allow server side includes (edited the httpd.conf to all them:
    <Directory />
    Options FollowSymLinks Indexes MultiViews Includes
    AllowOverride None
    </Directory>
    But I can't get the pages to come up. See I have this .shtml page which loads fine and a part of it has this line:
    <!--#include file="news/news.txt" -->
    But it won't parse that txt file and show the html that its formatted in.
    Anyone have any ideas on how to get it to parse that txt file? Even if I load just that txt file it shows raw code not it formatted. Please help.

    Ignore that first reply. I thought I was dealing with server.
    As usual, I fogot to make sure that Includes was in the Options directive for the DOCUMENT_ROOT or VirtualHost. After 10 years, you'd think I'd remember that. I just configged one of my macs to do SSI. Here's the 3 lines that I changed:
    Line 399 (the DOCUMENT_ROOT definition): Options Indexes FollowSymLinks MultiViews Includes
    Line 887 (To use server parsed HTML): AddType text/html .shtml
    Line 888: AddHandler server-parsed .shtml
    apachectl restart
    and off it went!
    Roger

  • Display Server Side Include at top of scrollable Div

    Hello,
    In this topic, I will be referring to the following containers on my page:
    DIV A:  Contains the content of the page; this div has overflow set to scroll.
    DIV B: Contains the links
    DIV A contains 3 different server side includes, each with a different ID. Using the Show/Hide Element, I have set it so that when a link in Div B is clicked, the appropriate server side include is displayed in DIV A, and the other two server side includes are set to hide.
    The only problem is that when their appropriate links are clicked, SSI 2 and SSI 3 do not appear at the top of DIV A, but at the position they would be if all SSIs were set to show, so the user has to scroll to see SSI and SS 2.
    Do you folks know of any way to have the SSI display at the top of DIV A?
    It occurred to me that instead of using Show/Hide behavior, I may need to somehow include an SSI only when a DIV B link is clicked, and when a different DIV B link is clicked, that SSI is stripped form the page and the appropriate SSI is included.Is that even possible?
    Does this make sense to all of you?
    Thanks,
    Mike

    Without seeing your code, it could be how you are positioning these elements on your page.  If you plan on showing/hiding layers you will need to position these layers to show in the same spot every time by setting the position of DIV A to relative and the position of the 3 layers inside to absolute with a top and left value set to 0.

  • SSI (Server Side Include)

    Hi folks.
    I have installed J2EE SDK 1.4_03 and I'm interested in using it to develop my personal website locally on my PC. At a later date I wish to upload it to a paid web host.
    The reason I have chosen to run a server rather than just accessing html files directly from my hard-drive is because I would like to utilize SSI (Server Side Include). That's really all. I'm not really interested in doing anything too interactive between the viewer and the server! Not yet anyway.
    I have found various information online but nothing is working. I'm sure there is information that I am missing or something further I need to do to actually initiate it. The information I have found says to un-comment the various section in the file default-web.xml located in this folder c:\Sun\AppServer\domains\domain1\config for this to be activated globally. Below is a copy and pasted chuck of text that I have un-commented within this file..
    Secondly I'm putting my test html pages in the folder C:\Sun\AppServer\domains\domain1\docroot using the include syntax that I have found all over the net such as <!--#ECHO var="DATE_LOCAL" --> & others.
    I can not get the thing to work. I'm guessing there is more to it. For a start... am I putting my html pages in the correct folder for this to work? And Is there something I need to do to activate the ssi servlet? The only reason I'm putting my test pages in this folder is because the page at http://localhost:8080 says that I can overwrite the index file to replace it. Is this the correct place for this?
    Also this class has me thinking... org.apache.catalina.servlets.SsiInvokerServlet Am I suppose to download this separately and put it somewhere? If so where is it? And where do I put it? I am horribly confused and I can not find any further information on this.
    If anyone could help me out on this topic I'd really appreciate it. btw, I'm a beginner in this area... I'd really just like to server html pages with ssi features at this point. Nothing more. The server seems to be working.
    Thanks,
    Tane
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>

    You can always use jsp:include or Apache tiles or something similar. I have not used SSI in a while, but you may want to check out those technologies, as they offer more than simply includes.
    - Saish

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • SSI Server Side Includes searchable?

    I'm creating a site that uses Server Side Includes to pull
    content into pages. The client wants to include a Search function
    to the site. My question is can a search function not only find the
    SSI pages but pull them up directly?
    Please see
    http://www.trainride.org/mtm_index.shtml
    The 2nd line of the bottom navigation are links that pull
    content into the page with server side includes. Is there a way to
    search and load the content pulled in by the server side includes?
    Any help would REALLY be appreciated.
    Thanks in advance!

    Melissa,
    I believe that the search engines create their indexes using
    spiders
    that walk through all of the browser links in your site. The
    content of
    your SSIs get embedded into your page on the server, so there
    is no
    actual link by the time the page gets to the browser.
    So, I think you need to add a hyperlink to your SSI pages
    some (maybe
    hidden) place in your site so the spiders will find them.
    HTH,
    Randy
    > I'm creating a site that uses Server Side Includes to
    pull content into pages.
    > The client wants to include a Search function to the
    site. My question is can a
    > search function not only find the SSI pages but pull
    them up directly?
    > Please see
    http://www.trainride.org/mtm_index.shtml
    > The 2nd line of the bottom navigation are links that
    pull content into the
    > page with server side includes. Is there a way to search
    and load the content
    > pulled in by the server side includes?

  • What language should I use if I am a beginner to using SSI (server side includes)?

    I want to start using server side includes and understand how to also code them by hand.  What is the easiest way to begin?  Do I just php?
    -Kate

    First question you need to ask your Host is if they support server-side includes and which document extensions you can use.
    Common extensions:
    .shtml, .shtm, .php, .asp, .cf.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

Maybe you are looking for

  • Error when launch web form

    Hi, I have used Developer Server 6 on NT4, Netscape 4.61 with JInitiator 1.1.18 and IE5. I have extracted classes.zip into orant\forms60\java. My forms work fine when I use Netscape 4.61 with JInitiator, but When I launch a form with IE5, this errors

  • Unable to check HP printer ink levels via Supply Levels

    I've got an HP Photosmart 8450 printer, and so far no printing problems with 10.5.1. However, I can't check ink levels in the printer via the "Supply Levels" window, and I can't find another way to see this information. I'm using the printer driver s

  • How to hide the link when no data exists

    I have created a new page in inventory module here.I have developed a search page like if i query through organization all the items related to that are displayed in results table.I have introduced one more dummy colums called details with image and

  • Scanning documents for email attachments.

    When I scan a document with Preview, and I want to attach it to an email, it will not let the attachment show just as a PDF file.  It always opens the document in the email.  Can this be changed?

  • What does this grey circle in the centre of my shape mean?

    When I generate a shape (an arrow in this example) in FCPX, and I pause the movie, a grey circle appears in the centre of the shape. This disappears as soon as I hit play.  I've been trying to find out what this means and if there's any way of turnin