File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Include

 
Meet Gaurav
Ranch Hand
Posts: 492
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic