Log in

View Full Version : HTML page does not want to resize to Iframe's Size.



ryanm123
06-18-2009, 09:01 PM
Hey everyone

I'm new here. Boy have I spent hours reading through some of this forum's content. Great stuff and especially the support.

I have one for you :rolleyes:

I have a page with an iframe code in it referencing an external page.

The page does not want to resize to the actual size of the external page (in height I mean)

Hope someone can help.

This is my iframe code:
<iframe name="FRAMENAME" src="http://domain.com/subfolder/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

I really hope someone can help me here.

Regards,
Ryan

X96 Web Design
06-18-2009, 09:08 PM
It won't resize to the height of the page, you have to define a height yourself...

Hope this helps,
X96

ryanm123
06-18-2009, 09:21 PM
Are you sure?

So there is no way I can add specific code that will allow the page to resize to the iframe's height?

The problem I'm having is that the page where the iframe code is on, is part of a dynamic template. So manually resizing each page is going to take forever. And other pages will get affected by the same height.

However, if I can somehow add a code that will resize the template page automatically when content goes beyond the original set size, then when somebody lands on the iframe page it will resize there as well. All will be good!

So what are my options here seeing that I cannot do that? :(

X96 Web Design
06-18-2009, 09:24 PM
There probably is a script out there somewhere that will resize the page... But It'll take some looking.

Try looking on JavaScript Kit (http://javascriptkit.com)...

// X96 \\

ryanm123
06-18-2009, 09:34 PM
Thanks for the help.

I'm willing to pay for some help. Time isn't really a comfort now lol.