473,395 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Acessing HTML files

How to include an HTML file within an another HTML file
Feb 15 '08 #1
4 1349
harshmaul
490 Expert 256MB
Hi,
Not with html, HTML is purely a clientside presentation language.
HOWEVER you can do it using XML, and Javascript, or a serverside language (PHP or ASP).

it is relativly straight forward with the above. make a choice and then ask in the relative forum. Cheers mate!
Feb 15 '08 #2
ronverdonk
4,258 Expert 4TB
Don't agree entirely with that.

You can use the so-called SSI (Server Side Includes) from within HTML but only if the server supports SSI, which a lot of servers do. With SSI you can not only include files but a lot of other things also.

Best is to use google and have a look at the zillion entries. An introductory overview can be found HERE

Ronald
Feb 15 '08 #3
SSI, or Server Side Includes, were first developed to allow Web developers to "include" HTML documents inside other pages. If your Web server supports SSI, it's easy to create templates for your Web site.

1. Save the HTML for the common elements of your site as separate files. For example, your navigation section might be saved as navigation.html or navigation.ssi.
2. Use the following SSI tag to include that HTML in each page.

<!--#include virtual="path to file/include-file.html" -->

3. Use that same code on every page that you want to include the file.
Feb 15 '08 #4
Thank u.. ya i have done by using ASP.. but i need it in HTML itself
Mar 11 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: TrustyTif | last post by:
After surfing the google & MSDN for a few days I found an MSDN site that explained how to "new" a multidimensional array in C++...but, I don't know how to use it, for alas, my brain still doesn't...
1
by: piyush.plaban | last post by:
i need to create a site with a feed back system one of my friend said to me ASP has nothing to do with this project is it possible to do this using ASP ?? if yes then what r the major...
17
by: jeff | last post by:
Hiya, I would like to be able to read the values in the registers of the x86 type processor, using C. I could do this in ASM but I really want to use C for my project, I havent done anything...
2
by: Jay | last post by:
Hello, Iam trying to access a mdb file from a shared drive \\mycomputer\files from ASP.NET and OLEDB. It works locally Computer A hosts IIS/ASP.Net. Files reside in ComputerB under a...
1
by: Philip | last post by:
Hi, first of all I'm new to this whole .net thing so please forgive my ignorance. Now I have a C++ object with me, and I want to be able to call its methods from VB.net. e.g. Foo::Foo { }...
0
by: balu | last post by:
Hi, We are developing an client-server like application in visual basic in which a server , After connected to a client using the client's ip address , must be able to see the client's...
7
by: bonk | last post by:
Hello I am acessing a Dictionary<TKey,TValuefrom multiple threads and often in a foreach loop. While I am within one of the foreach loops the other threads must not modify the collection itself...
0
by: ajitpsingh | last post by:
Hi, I recived Error message when acessing OLE Object. "Cannot start the source application for this object" in MS Excel.
3
by: swamimeenu | last post by:
hi, I am facing the problem in vb tht if more than one user accessing my program from various systems,if both of them acessing the progam at a same time (ie) for feeding data in it ,at tht time i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.