This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Include

 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some 20 Static HTMl pages. In all 20 Pages I have the same Menu list

for Ex:

Home
AboutUS
ContactUS

Some times I will add few sub menus, In that time it's very difficult to change the same in all the 20 pages. Is their any way to include another HTML page. So that I can put all the menu related code in that HTML file

iframe is the only option ? please help me out
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if your server lets you do serverside includes.

Eric
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a small website only static HTML pages(Running on Client machines). No dynamic content
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you need to use frames....

OR

You spend some time and write a little application that will take a file and inject the code in for you when you are ready to release it/or build it. Ant and Maven would be your friend.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic