By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

Retrieving the height of the content inside an Inline Frame (IFrame).

P: n/a
Hi All,

I'm working on a webpage. In this webpage i have an IFrame. I load html
files in this I frame, but then i get those scrollbars which i want to
get rid off. My Iframe has a fixed width. The height should be as large
as its content. In this way there is no scrollbar with the inline
frame. Only the mainframe has the scrollbar now. Is there a way to let
the iframe grow with its content.

I have a sollution that is partly solved. With Javascript i can change
the size of the IFrame. But i don't know the size of its content. Is
there a way to retrieve the height of the content of the Iframe and
than update the Iframe with this value.

--
Bjorn

Dec 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bj*****@hotmail.com said the following on 12/19/2005 5:57 AM:
Hi All,

I'm working on a webpage. In this webpage i have an IFrame. I load html
files in this I frame, but then i get those scrollbars which i want to
get rid off.
Then make your content fit the dimensions. But you will run into the
same problem you are having now.
My Iframe has a fixed width. The height should be as large
as its content. In this way there is no scrollbar with the inline
frame. Only the mainframe has the scrollbar now. Is there a way to let
the iframe grow with its content.
No because you have no way of knowing how much space to give the content.
I have a sollution that is partly solved. With Javascript i can change
the size of the IFrame. But i don't know the size of its content. Is
there a way to retrieve the height of the content of the Iframe and
than update the Iframe with this value.


No.
http://allmyfaqs.net/faq.pl?AnySizeDesign
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.