Odd request

From: Date: Sat, 12 Oct 2002 04:40:13 +0000
Subject: Odd request
Groups: php.general 
Request: Send a blank email to php-general+get-119716@lists.php.net to get a copy of this message
Probably a question for the php dev team, but here it goes. I want to display an external page in an iframe and have the iframe auto sized to fit the content without having scroll bars. I've tried javascript to no avail. So here's my idea: 1. Instead of iframe: $string = file_get_contents("http://somwhere.com"); to load page into string and then echo $string; use javascript to detect onclick, get href of anchor, load page into string and echo again. Works O.K. unless there are relative paths in document. 2. What I want to do: $string = file_get_contents("http://somwhere.com"); and determine the height that this page ($string) would render in a browser. Render iframe at determined height with src = "http://somwhere.com". Any way in php to determine at what height html content will render??? If not, should there be? TIA -Shawn

« previous php.general (#119716) next »