You are here: Re: HTML Include command? « HTML « IT news, forums, messages
Re: HTML Include command?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация