... Reusing common html code on multiple pages ...



• Reusing common html code on multiple pages »»


Hi,

I'm pretty new to HTML, so bear with me.

I'm working on a standard problem - I have multiple html pages with common content (header and footer). I want to have to update this common information in one place only.

My web research has lead me to SSI's and Javascript.

The SSI solution looks neat, but requires a new directive in my .htaccess if I want to hide the fact them I'm using SSI's (which I think I do). Also, this leads to an overhead on the part of the web server.

The JS solution also looks neat - embed the html within a document.write command in a text file and call this as a script from wherever I want to use it.

Question is: Am I missing something in either of these approaches (other advantages/disadvantages). Also, is there another (better) solution that coders prefer to use?

Thanks,
jomag
 Bookmark with:            
Source: IrishWebMasterForums | pub: 27 Aug 2008 by: askaboutfoodie | added: 27 Aug 2008 | cat: Coding Help | views: 29 time/s
Related Articles...
Leave a Comment...
Name: *
Email: *
Comment: *
Security Code: security code
*
     Remember me:
Categories
Channels
Press Release