Forum Moderators: open

Message Too Old, No Replies

Importing a table into a page via?

from another domains hosting the file

         

deft_spyder

5:45 pm on Jul 3, 2003 (gmt 0)

10+ Year Member



I'd like to host a table on a sever, and have another website pull that table in.

Problem is that some of the sites I'd like to do this on are on severs not using jsp.

Because I can't install a more complicated langauge to use on the server, is there perhaps a way to use javascript to pull in the table to the html file?

I have found this tag:

<!-- #include "myfile.inc" -->

but no supporting code. I'm designer, not a programmer, so I'm a bit lost here.... help?

tedster

7:31 pm on Jul 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What you've found is a server-side include (SSI) instruction -- it's not javascript. But, it does require that a server be configured to use it. And, unfortunately, as far as I know, you are limited to including files on your own server. In fact, without special configuration, you are limitied to files in the same directory.

Here's a really nice set of articles on server-side includes from Big-Nosed Bird [bignosebird.com].

So that doesn't resolve your issue. If you can get the other server to maintain an html file of just the table, on its own, you could use an iframe to display the table on your page.

However, if the table is frequently updated, this might be problematic as well.