OZONE Asylum
Forums
Stupid Basic HTML
iFrames Height
This page's ID:
9671
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I wrestled with the same problem for several days. With some javascript, I was able to resize the iframe to match the content (and get rid of the scrollbar) when the page loaded. But there are some limitations: 1. This only works when the page initially loads. If you click a link to another page within the iframe, the iframe will not resize. This is because the page hosting the iframe doesn't receive any events that occur in the iframe. (Unless you specifically add javascript to the pages appearing in the iframe. Since this violates your restriction on modifying the 'hosted' pages [as it did for me] , you are stuck with this limitation.) 2. If the pages appearing in the iframe are not from the same domain as the 'hosting' page, then this approach will not work and you are probably at a dead end. (This is due to security restrictions in browsers which prevent cross-site scripting.) Ultimately, this is probably your biggest obstacle... Hope this helps.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »