Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

including file in a html file

Posted on 1998-08-24
3
Medium Priority
?
141 Views
Last Modified: 2013-11-18
can i includ a file in a html file?? in other words
are there any html code can replace this asp syntax:
<!--#include file="header.inc"-->

Atef.
0
Comment
Question by:atefa
3 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 150 total points
ID: 1836961
You could always use the <OBJECT DATA=""></OBJECT> tag... Replace DATA= with your source file... However, you get it in a box...

Is there a reason you want to get away fom Server Side Includes?  
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1836962
<!--#include file="header.inc"--> is a server side include (SSI) as Matt said.
It is not ASP.
If your server allows it, SSI is the best route to go for including another file!
-josh
0
 

Author Comment

by:atefa
ID: 1836963
Even if the <Object> tag doesn't do exactly the same thing as this : <!--#include file="header.inc"-->, I thank you for confirming that my SSI command is the best way to include files ...

Atef

0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question