Solved

including file in a html file

Posted on 1998-08-24
3
131 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript create file issue 4 47
How to avoid jquery conflicts in Wordpress ? 4 24
Why my select dropdown does not work? 8 21
CSS Logo Problem. 2 7
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now