Log in

View Full Version : can we have content of one file inside HTML file



krina
11-02-2006, 07:01 AM
:(

I am fresher, and I want to implement a program in
which I can place content of one file may be txt, or HTML or XMl inside
div tag of HTML file.....
can you please show me the way?
or small working example...will do........

codeexploiter
11-02-2006, 07:15 AM
1.Using Server Side Includes

syntax
<!--#include file="include.inc" -->

2. Use a server side tool like php read the file put the content whereever you want.

djr33
11-02-2006, 08:16 AM
3. Use frames, perhaps.

All depends on the specific purpose/options you have.



Note: PHP will certainly give you the most options of any of this.

codeexploiter
11-02-2006, 08:33 AM
Frames hmmm they have problems too especially distorted display on certain browsers.

djr33
11-02-2006, 08:52 AM
Yeah, but they're a good option when others are too complex, in some situations anyway.

tech_support
11-02-2006, 09:09 AM
Ajax.

djr33
11-02-2006, 10:53 AM
ajax ONLY if needed.


We need more info.... :p