|
Posted by Brian Cryer on 10/12/05 19:24
"Jackmac" <me@here.com> wrote in message
news:dijafo$9ba$1@newsg1.svr.pol.co.uk...
> Hi all,
>
> Hopefully a simple solution to this problem.
>
> I want to use some common elements in my web pages but want to store them
> centrally so I only need to change one file instead of multiple.
>
> I use it in programming just now so am sure it can be done.
>
> I have say a file page1.html which is standard text, and I wwant to
> include the information on page2.html in the middle section. Is there a
> way I can say:
>
> Call or Include page2.html
>
> If I strip out all the head and body tags, surely I should be able to put
> this in?
>
> Anyone any ideas?
>
> TIA
>
> Jackmac
There isn't an html include. (I wish there was!)
See if your server supports server side includes, I think that might give
you what you are after (but I've not used them, so could be wrong).
An alternative would be to use JavaScript, to generate the common content.
The trouble with this is that you can't rely on everyone having JavaScript
enabled.
Hope this helps.
--
Brian Cryer
www.cryer.co.uk/brian
[Back to original message]
|