PC Review


Reply
Thread Tools Rate Thread

Can't adjust the iFrame height to fit the contents.

 
 
Cal Who
Guest
Posts: n/a
 
      1st Jun 2010
For the last few days I've been looking on the Internet for code to adjust
an iFrame height to fit the contents.

I see many time that it is necessary to check the browser type and have the
code act accordingly.

I can't generate my own code because don't know enough about the various
browsers and their capabilities.

So I copy code from Internet sites and try them.

Sometimes it will not even run.

Often it runs and then stops with an error.

Otherwise, it does not accurately change the height.

I'm sure most of it worked OK at one time and that things have changed since
then.

So I'm asking if you have such code that you are willing to share by
displaying it here?

Be nice if I could support the browsers used by most people and default to
some fixed height for the others.


Thanks in advance for any help.




 
Reply With Quote
 
 
 
 
Cal Who
Guest
Posts: n/a
 
      2nd Jun 2010

I've been working on trying to generate different code for each of the
browsers I have.

I'll think about combinding them into one routine later.

I find iframeWindow.contentDocument.body works for IE8

Which is supurising because people seem to use contentWindow for IE.

I tried everything I could find each with variations but can't get FF to
work at all.

Do you know how to get FF to adjust the height of a iFrame to match the
contents?


Thanks


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adjusting the height of an iframe to fit the contents. Cal Who Microsoft ASP .NET 2 1st Jun 2010 05:11 PM
making a row height automatically adjust to cell contents John Microsoft Access Database Table Design 2 6th Jan 2010 11:38 PM
text box on form - automatically adjust height based on contents Paul Kraemer Microsoft Access Forms 6 10th Jul 2008 12:26 PM
Autofit didn't work to adjust row height to fit wrapped contents =?Utf-8?B?bndhY2N0?= Microsoft Excel Misc 4 31st May 2006 10:13 PM
expand <td> to height of its iframe contents Steve Richter Microsoft ASP .NET 1 8th May 2005 12:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 PM.