Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE9 resize

Status
Not open for further replies.

pahiker

Programmer
Aug 31, 2012
45
US
Odd as it seems, I have the resizing working everywhere except IE9. I've tried everything I can think of, and everything I could find searching to no avail.

Here is the site: Link

Here is the resize code:
Code:
	<script type="text/javascript">
		function iFrameHeight(iframeName)
		{
		var body = document.body,
			html = document.documentElement;

	    if(document.getElementById && !(document.all))
			{
			h = document.getElementById(iframeName).contentDocument.body.scrollHeight;
			var s = Math.max(body.offsetHeight, html.scrollHeight, html.offsetHeight, h);
			document.getElementById(iframeName).height = s + "px";
			}
		else if(document.all)
			{
			h = document.frames(iframeName).document.body.scrollHeight;
			var s = Math.max(body.offsetHeight, html.scrollHeight, html.offsetHeight, h);
			document.all[iframeName].height = h + "px";
			}
		}
	</script>


and the call to it:

Code:
	<div id="divObject" class="left">
	<iframe id="leftFrame" src="Home/Prayer.html" width="100%" onload="iFrameHeight('leftFrame')"></iframe>
	</div>

Let all bear in mind that a society is judged not so much by the standards attained by its more affluent and privileged members as by the quality of life which it is able to assure for its weakest members.
 
resolved.

Let all bear in mind that a society is judged not so much by the standards attained by its more affluent and privileged members as by the quality of life which it is able to assure for its weakest members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top