RE: JavaScript alternative to SSI

by Chuck Evans <Chucke(at)captura.com>

 Date:  Mon, 5 Jun 2000 10:56:26 -0700
 To:  "'HWG Languages'" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Yes, for javascript enabled browsers, you could use a linked javascript file
that did a bunch of document.write's to include the text. But if you were
making your page accessible to those without javascript, you'd have to
repeat that code in a noscript section anyway, which would defeat the
purpose.

The link code would look like:

<script language="JavaScript" src="path-to/js_file.js"></script>

---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com

-----Original Message-----
From: WebProgrmr(at)aol.com [mailto:WebProgrmr(at)aol.com]

Is Javascript capable of doing an "include" in the same way that SSI does?  
For example, rather than doing <!--#include virtual="file" -->  is there a 
way of making the client do the include such as with JavaScript?

HWG: hwg-languages 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.