I want to dynamically adjust the height of an iframe of a Shindig Gadget depending on content inside of it. After some research I found out that it is required such iframe src
to have <!DOCTYPE ...>
declared to get the height of the content inside iframe using the following:
document.getElementById("iframe").contentWindow.document.body.scrollHeight
But it is impossible to define a doctype inside <![CDATA[
of a Shinding module. What's the best way to achieve this?
Try this
Here is an working example click here