Forum Moderators: not2easy
<url removed>
has a main content div that contains an iframe to enable loading external url's.
i have not found a way to have the div/iframe heights adjust to the varying content of the iframe.
Currently, the only way to display is to have a really tall div as wrapper for the iframe.
This is a bad solution, since on short pages there is a lot of empty white space below the content. Worse yet, pages longer than the height of the wrapper div display double scrollbars.
Current css validates.
clues?
thanks,
Andres
<No URLs, please. See TOS [webmasterworld.com]>
[edited by: tedster at 2:19 am (utc) on Jan. 22, 2004]
You might want to use the "Owner Edit" button and delete the link to your site as WW's ToS [webmasterworld.com] doesn't permit them.
I played around with this same scenario a few months ago and came to the conclusion that -- at least with my limited ability -- it's impossible.
Would be very interested if anybody else comes up with anything.
Use a div instead
But the idea is to load an external page.
I did though find this on using an iframe as a buffer -- load the external page into a hidden iframe, then use innerHTML to load the iframe content into a div.
http://www.dyn-web.com/dhtml/iframes/buffer.html
I'm not going to have time to play around with it for a couple of days but will post if and when I make any headway.
The idea I was fiddling with the past few months was to replace the frame page with a regular html page that includes an iframe; this regular page would carry all of the navigation. In that iframe I would load an external page from my site; this page would carry the info for the specific widget. Links from this page would load the appropriate page from the affiliate site.
Main Widget Page
with nav, etc.
My Widget Info Page
with links to
Affiliate Page
I wanted the transition from my widget data page to the affiliate page to look seamless -- without scroll bars and other weird behaviour -- and this has proved the sticking point with differing page lengths.
As for orphaned pages, I'm hoping it can be taken care of by checking for if(top==self) and maybe a fiddling a dynamic frameset script for use with iframes, but haven't actually yet gotten to that point.
This might all prove for naught since I'm also investigating a completely different direction to go. Still, any ideas on this approach would be much appreciated.