We help IT Professionals succeed at work.
Get Started

HTML Client-Side Include - can i do it?

7,814 Views
Last Modified: 2013-11-18
I have a website that will only be run on my school intranet, (ie. it doesnt run on any fancy SSI server) and i want to include one html file inside another. I would like to have a single index.htm page that responds via javascript or something to links and includes in a cell of a table different files depending which option is clicked.

what is the command that i would use to include the file? like if you are using SSI you can use <!--#include file='otherfile.htm'--> but how is this done for client-side includes? Preferably i would like to use a javascript command, simply because i know a little bit of js, but any better ideas would be appreciated (except for running a SSI server)

Just so you know, this ISNT homework ;) I'm doing work for the school, but not for class.)
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 27 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE