Click to See Complete Forum and Search --> : no way to include html from other sites, right?
Jaguarr
06-08-2005, 05:19 PM
is there a way to include a file that is not on the server using "include file" and the "include virtual" command?
for example, this doesn't work
<!--#include virtual="http://www.agry.purdue.edu/climate/random.asp"-->
Charles
06-08-2005, 05:48 PM
You can use SSI to include output from scripts, so if you had a server side script that fetched that other site you would be good to go.
However, you do not want to include somebody's whole page, the result wouldn't be valid HTML. You need that server side script of yours to return just the part that you are looking for.
If you want to display their whole page then use the IFRAME element.
If their page is really just a fragment of XHTML then you could write your page in XHTML and use external entities, but it would only work in MSIE.