Results 1 to 2 of 2
Jul 24, 2011, 00:07 #1
- Join Date
- Dec 2005
- 0 Post(s)
- 0 Thread(s)
Sending variable to page from iFrame?
I'm trying to make a cross domain iframe and want the iframe to dynamic resize the height. I have read that this is not possible, but if I own both domains I thought that I in my cross domian could make an variable which tells the height of the page and then send it via the iFrame to my page.
My crossdomain page has a javasacript like this:
var pageHeight = document.getElementById("container").clientHeight;
And my page would get the page like this:
<iframe src="mypage.com" width="100%" height="The height from my crossdomain" frameborder="0" scrolling="no">
Can I send the pageHeight to my page?
Thanks in advance...