Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading a text file in a page

Status
Not open for further replies.

honeybu

Programmer
Nov 27, 2002
5
US
I am trying to figure out a way that I can load another file into a web page by using the client and without having to create a frame or an iframe.

Fo instance, I might have a table that looks like this:

<table>
<tr>
<td> This is the left column... </td>

<td> ?? </td>

I want this column to be loaded from another file whether it be &quot;mystuff.htm&quot; or &quot;mystuff.txt&quot; or &quot;

<td> This is the right column... </td>
</tr>
</table>

This way I can update one file and use it without having to touch my code. This would also be great for putting the same header or footer on everypage without having to copy it into every htm file.

I have been playing with whatever I could find from &quot;id&quot; in the <td> tag to <script> commands, etc.

Does anyone have any idea??

Thanks,
Jim
 
I just posted something similar over in the HTML forum: thread215-414168

that is using plain text fields, your other option is to use an xml file and data islands. Rather than write another example on turkey-eve I'll point you to one over at w3schools:

Hope one of these helps,
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
This space has nothing in it, it's all ni your imagination
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top