Hi Nathan,

Technically - not so. In reality (and for the OP) - yes. :-)

You determine (in the configuration of the Apache server) which documents should be scanned for SSI directives. The "norm" was to identify these documents with an extension of .shtml. But if you want to include a standard header/footer on every page, then you would specify that all documents with an extension of .html should be searched.

Apace configuration requires:-

Options +Includes
AddOutputFilter INCLUDES .html


I think the concerrn about the SSI overhead is from many years ago with slower servers and slower transmission speeds. I use SSI for this header/footer method on the systemideveloper.com site (running off an iSeries on V5R3) and have never noticed any type of performance hit.


Regards

Paul Tuohy
ComCon
www.comconadvisor.com www.systemideveloper.com




Nathan Andelin wrote:
One concern I've heard expressed about SSI is that it forces the HTTP server to scan every document served, looking for <!--#include virtual="..." --> tags.

-Nathan.



----- Original Message ----
From: Nathan Andelin <nandelin@xxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Wed, June 9, 2010 1:18:34 PM
Subject: Re: [WEB400] Copybooks for HTML?

From: Vern Hamberg
Did Aaron's post about the include SSI address what you've been looking for?

Yes and no. SSI seems like a workable solution. I'd also like to see an HTML tag implementation. Something like:

<insert id="insert" src="...">

Where the browser requests a static file to be inserted at the <insert> point. Or with JavaScript:

document.getElementByID("insert").src = "...";

-Nathan.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.