I\'m trying to resize an iframe dynamicly to fit its content. To do so I have a piece of code:
$(\"#IframeId\").height($(\"#IframeId\").contents().find(\"htm
What you can do is the following:
Within the iFrame use document.parent.setHeight(myheight) to set the height within the iFrame to the parent. Which is allowed since it is a child control. Call a function from the parent.
Within the parent you make a function setHeight(iframeheight) which resizes the iFrame.
Also see:
How do I implement Cross Domain URL Access from an Iframe using Javascript?