Iframe Auto Resize Hell
- Started
- Last post
- 2 Responses
- domdom
So theres that code that automatically resizes an iframe to fit the contents of the page being loaded: http://support.microsoft.com/kb/…
BUT this only works if the page that is being loaded is from the same domain as the page that contains the IFrame.
But the page i want to load is not from the same domain - and its contents differ in height. Does anyone have a solution to this problem?
- inkblot0
Unfortunately, there is no workaround I've found.
We had to try this about a month ago and came to the conclusion that there is no way, at all, to resize an iframe based on contents unless the page is hosted on the same domain as the page containing the iframe.
Sorry :(
- ********0
You can do what you want with a little JS. It works in most browsers people care about (IE,Safari,Firefox). The code is a little too much to past here .
Since I have already written it I will email you stripped down version in a sec.