Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Webhosting Server Side Includes: Difference between revisions

m
no edit summary
(Created page with "link=:Category:Webhosting Our servers do not offer SSI facilities <!--#include virtual="ssi.htm" --> or <!--#include file="ssi.htm" --> however you can cr...")
 
mNo edit summary
(4 intermediate revisions by 3 users not shown)
Our servers do not offer SSI facilities <code>&lt;!--#include virtual="ssi.htm" --></code> or <code>&lt;!--#include file="ssi.htm" --></code>, however you can create the same effect by using Java Script,Javascript. theseThese notes were submitted by a customer and are here to help you.
[[File:Couk.png|link=:Category:Webhosting]]
 
 
 
Our servers do not offer SSI facilities <!--#include virtual="ssi.htm" --> or <!--#include file="ssi.htm" --> however you can create the same effect by using Java Script, these notes were submitted by a customer and are here to help you.
 
How?
First:
 
Include the following in the <code>&lt;head>&lt;head></headcode> section of your page
 
<SyntaxHighlight>
with your own file name substituted where you want the included text to appear.
 
 
Then:
 
Create a file myincludefilename.js to hold the text you want to output, then insert the text and wrap each line in a <code>document.write(" ");</code> statement.
 
Remember that in JS any newline characters ends the instruction so every line must be wrapped in a <code>document.write</code> statement.
 
The javascript file can have any extension, and be held in any folder subject to the usual rules about valid pathnames.
 
 
Example: Good
A web search on 'javascript include' will bring up lots more examples.
 
==Other Webhosting pages:==
 
 
 
==Other Webhosting pages:==
<ncl style=bullet maxdepth=5 headings=bullet headstart=2 showcats=1 showarts=1>Category:Webhosting</ncl>
 
 
 
[[Category:Webhosting|Server]]
[[Category:Domains]]
252

edits