0

Hi,

The Actual height of applet is 600 and I have 4 IFrames in table which calculates the height of the table

In IE-8 the calcHeight(iframe_id) returns a height of "97" but the same code in IE-11 returns the height of "150"

Can anyone tell what is the problem with IE-11?

function calcHeight(iframe_id)
{

   var the_height=document.getElementById(iframe_id).contentWindow.document.body.scrollHeight;
   document.getElementById(iframe_id).height=the_height;

}

<table width="100%" height="100%" style="table-layout: fixed;" cellpadding="0" cellspacing="0">
<tr>
<td id="container" >
<iframe name="iFrameX" id="iFramePharmacy" src="" width="100%" onload="calcHeight('iFrameX')" allowtransparency="true" frameborder="no" scrolling="no">
</iframe>
</td>
</tr>
... 3 more iframes are defined as above
</table>
2
Contributors
1
Reply
10
Views
2 Years
Discussion Span
Last Post by farasat007
-1

<iframe name="iFrameX" id="iFramePharmacy" src="" width="100%" onload="calcHeight('iFrameX')" allowtransparency="true" frameborder="no" scrolling="no">____________</iframe>_

Edited by deceptikon: Snipped fake signature

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.