FW: Client-side HTML Includes

by Andrew Sturmey <andrew.sturmey(at)deverill.co.uk>

 Date:  Tue, 23 May 2000 23:20:54 +0100
 To:  "'hwg-techniques(at)mail.hwg.org'" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Can anyone assist?

I've been asked to design a site.  Three requirements of it that I'm having
trouble meeting with a single solution:

- It must be really light on bandwidth.
- It has to have a chunk of standard navigational stuff at the top of each
page, and some corporate copyrighty, disclaimery stuff at the bottom of each
page.
- It may not use frames in any capacity.

Ordinarily I'd either put the non-changing stuff in alternate frames to the
browsable stuff, or I'd use server-side includes to churn out the same bits
at the top and bottom of each page.

Since server-side includes are a no go area as they'd have to be
retransmitted in each page, I thought a cachable client side include would
be in order.  Never having done this before I looked to the official html
specification for answers.

The obvious way to do this looked like using an <OBJECT> tag to include the
same two files in each page, but when I did this, I got horrible IFRAMEish
looking bits appear *groan*.

Any ideas on how I can just include chunks of other pages in a page without
having to have kludgy looking bits?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.