[thelist] iframe as big as necessary?
Jason Handby
jason_handby at illustraresearch.com
Tue Mar 30 09:18:14 CST 2004
> but if the document in iframe *is* on server A, and it contains the
> necessary javascript, and also reads in stuff from a file on
> server B.
> in php I would do something like:
>
> $news_source = '';
> $file = fopen("http://www.B.com/news.aspx", "r");
> if (!$file) die("unable to access news server");
> while (!feof($file))
> {
> $news_source .= fgets($file);
> }
> fclose($file);
>
> and then clean up and do things with the $news_source.
>
> this would also allow fetching the news content from other
> servers too,
> and using the same javascript with them.
>
> would this work?
Having discovered that the Javascript route wasn't going to work, I'm
now in the middle of doing pretty much exactly that!
Thanks Kasimir and Peter-Paul for your help.
Jason
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.645 / Virus Database: 413 - Release Date: 28/03/2004
More information about the thelist
mailing list