PDA

View Full Version : Displaying seperate file in a web table



18-03-2002, 11:11 AM
Is it possible to call a seperate html or txt file to be displayed inside a table on another webpage?

I have a lot of pages that look the same, but each one has a table which houses the constantly changing content, and so I was wondering if it is possible to somehow call the content from another file, rather than changing the whole page each time I want to change the content.

I'm guessing I could use iframes, but I'm trying to stay away from that option. Does anyone have any suggestions?

Mike.

18-03-2002, 12:32 PM
Hi Mike - I do it like this:

<script JAVASCRIPT
src='http://otherdomain.co.nz/cgi-bin/whateverdirectory.js'>
</script>

Insert the above in the table with your own variables.

18-03-2002, 03:29 PM
I'm not sure if I follow you here, Greg... How does that display the contents of my html or txt file in the table?