krao
03-16-2011, 03:49 PM
Hi,
I am trying to dynamically adjust the height of my iframe. The value for
document.getElementById("myframe").document.body.scrollHeight always returns a value 518 although the page loaded in iframe is much bigger.
Let me know what am I missing here? Is this because I have positioned the iframe in a table? What is the best method to do this?
The structure of the page is as below
<html>
<table>
<tr>....
<tr><td><iframe id="myframe">...
<tr><td><table></td>
<td><table></td>
<td><table></td>
</tr>
<tr>...
</table>
I am trying to dynamically adjust the height of my iframe. The value for
document.getElementById("myframe").document.body.scrollHeight always returns a value 518 although the page loaded in iframe is much bigger.
Let me know what am I missing here? Is this because I have positioned the iframe in a table? What is the best method to do this?
The structure of the page is as below
<html>
<table>
<tr>....
<tr><td><iframe id="myframe">...
<tr><td><table></td>
<td><table></td>
<td><table></td>
</tr>
<tr>...
</table>