<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to dynamically adjust an iframe&#8217;s height</title>
	<atom:link href="http://www.mattcutts.com/blog/iframe-height-scrollbar-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/</link>
	<description>neat fun stuff</description>
	<lastBuildDate>Fri, 06 Nov 2009 18:35:07 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: HTML</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-396830</link>
		<dc:creator>HTML</dc:creator>
		<pubDate>Sat, 26 Sep 2009 07:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-396830</guid>
		<description>Thanks for posting it. I did something very similar and wish I found it a week earlier.

The problem mentioned above about the loading order is significant. You have to do the onload event on the iframe document and not on the parent. The iframe can load after the parent.

Why iframes? Many good reasons. Forms in popups without heavy duty javascript support. It is also a lot easier to build popups with forms and other modal interactive functionality with iframes instead of ajax. 

If you want a quick and snappy website, all the gimmicks are out the door. Think web 2.0 in terms of the user experience, not in terms of how you write code.

Say what you want about google, they are giving user what they want. User first, code second. This means in many ways iframes first ajax second.

This really has nothing to do with SEO. Googlebot does not fill forms and upload photos.</description>
		<content:encoded><![CDATA[<p>Thanks for posting it. I did something very similar and wish I found it a week earlier.</p>
<p>The problem mentioned above about the loading order is significant. You have to do the onload event on the iframe document and not on the parent. The iframe can load after the parent.</p>
<p>Why iframes? Many good reasons. Forms in popups without heavy duty javascript support. It is also a lot easier to build popups with forms and other modal interactive functionality with iframes instead of ajax. </p>
<p>If you want a quick and snappy website, all the gimmicks are out the door. Think web 2.0 in terms of the user experience, not in terms of how you write code.</p>
<p>Say what you want about google, they are giving user what they want. User first, code second. This means in many ways iframes first ajax second.</p>
<p>This really has nothing to do with SEO. Googlebot does not fill forms and upload photos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webdesign</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-350138</link>
		<dc:creator>webdesign</dc:creator>
		<pubDate>Fri, 19 Jun 2009 10:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-350138</guid>
		<description>Retro Iframes :) well sometimes its saves time .... :)</description>
		<content:encoded><![CDATA[<p>Retro Iframes <img src='http://www.mattcutts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  well sometimes its saves time &#8230;. <img src='http://www.mattcutts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-327826</link>
		<dc:creator>Cristian</dc:creator>
		<pubDate>Sat, 25 Apr 2009 08:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-327826</guid>
		<description>I&#039;ve been using IFRAMES and tables all my life. It&#039;s the best option when you refuse to (or can&#039;t) use PHP, ASP or any other dynamic db-based designs.

Thanks a lot for this code, it&#039;s exactly what I needed. Glad to know someone else uses IFRAMES.

Cheers from Argentina.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using IFRAMES and tables all my life. It&#8217;s the best option when you refuse to (or can&#8217;t) use PHP, ASP or any other dynamic db-based designs.</p>
<p>Thanks a lot for this code, it&#8217;s exactly what I needed. Glad to know someone else uses IFRAMES.</p>
<p>Cheers from Argentina.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giannis</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-280044</link>
		<dc:creator>Giannis</dc:creator>
		<pubDate>Wed, 18 Mar 2009 15:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-280044</guid>
		<description>First of all, a big thanks for your time and sharing.

I&#039;ve tried to use your original code, but i had two small problems:

one, i did not want to use body onload.

second, it worked fine while retriving  the first page. But if i linked from the framed page to another, smaller one, the height remained the same.

Well, some reserching and i&#039;ve came up with this:


// Firefox worked fine. Internet Explorer shows scrollbar because of frameborder
function resizeFrame(f) {
var s;
s = 100;
f.style.height = s;
s = f.contentWindow.document.body.scrollHeight + &quot;px&quot;;
f.style.height = s;
}


&lt;!-- and  --&gt;


  
  


a) putting the onload to the iframe, the iframe re-configures the height everytime the iframe loads. Also, b) putting the f.style.height to change twice, the iframe has always the correct height, even if i go from a bigger to a smaller linked page.

It works for me in ie v7, ff v3.0.7 and Chrome.

Hope it comes in handy,

Thanks again for sharing,
Giannis.</description>
		<content:encoded><![CDATA[<p>First of all, a big thanks for your time and sharing.</p>
<p>I&#8217;ve tried to use your original code, but i had two small problems:</p>
<p>one, i did not want to use body onload.</p>
<p>second, it worked fine while retriving  the first page. But if i linked from the framed page to another, smaller one, the height remained the same.</p>
<p>Well, some reserching and i&#8217;ve came up with this:</p>
<p>// Firefox worked fine. Internet Explorer shows scrollbar because of frameborder<br />
function resizeFrame(f) {<br />
var s;<br />
s = 100;<br />
f.style.height = s;<br />
s = f.contentWindow.document.body.scrollHeight + &#8220;px&#8221;;<br />
f.style.height = s;<br />
}</p>
<p><!-- and  --></p>
<p>a) putting the onload to the iframe, the iframe re-configures the height everytime the iframe loads. Also, b) putting the f.style.height to change twice, the iframe has always the correct height, even if i go from a bigger to a smaller linked page.</p>
<p>It works for me in ie v7, ff v3.0.7 and Chrome.</p>
<p>Hope it comes in handy,</p>
<p>Thanks again for sharing,<br />
Giannis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-132035</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Mon, 25 Aug 2008 18:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-132035</guid>
		<description>I&#039;ve been in arguments with fellow developers about this one at times, some feel iframes are evil 100%, but I&#039;ve always felt they&#039;ve had their use. A few commenters on here pointed out great examples of good iframe use. If you&#039;re using iframes for text content, you can probably use other techniques to get the same effect without the seo drawbacks of iframes, but certain applications just make sense to use an iframe.

Kinda like when people go through the trouble of trying to make crazy tables with div tags that should probably have just been HTML tables in the first place, blindly thinking that all html tables are evil.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been in arguments with fellow developers about this one at times, some feel iframes are evil 100%, but I&#8217;ve always felt they&#8217;ve had their use. A few commenters on here pointed out great examples of good iframe use. If you&#8217;re using iframes for text content, you can probably use other techniques to get the same effect without the seo drawbacks of iframes, but certain applications just make sense to use an iframe.</p>
<p>Kinda like when people go through the trouble of trying to make crazy tables with div tags that should probably have just been HTML tables in the first place, blindly thinking that all html tables are evil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lokimona</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-130989</link>
		<dc:creator>Lokimona</dc:creator>
		<pubDate>Sun, 27 Jul 2008 13:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-130989</guid>
		<description>saved certain minutes matty</description>
		<content:encoded><![CDATA[<p>saved certain minutes matty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryu</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-130478</link>
		<dc:creator>Ryu</dc:creator>
		<pubDate>Tue, 22 Jul 2008 09:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-130478</guid>
		<description>Thx that works fine !

The problem in IE with scrollbars its fixed if you add a little amount of pixels. Ex:

    function resizeFrame(f) {
        var size;
        size = f.contentWindow.document.body.scrollHeight+10;
        f.style.height =  size + &quot;px&quot;;
    }</description>
		<content:encoded><![CDATA[<p>Thx that works fine !</p>
<p>The problem in IE with scrollbars its fixed if you add a little amount of pixels. Ex:</p>
<p>    function resizeFrame(f) {<br />
        var size;<br />
        size = f.contentWindow.document.body.scrollHeight+10;<br />
        f.style.height =  size + &#8220;px&#8221;;<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johny</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-122298</link>
		<dc:creator>johny</dc:creator>
		<pubDate>Sat, 09 Feb 2008 13:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-122298</guid>
		<description>cross-domain auto-sizing iFrame solution:

(requires ability to put script into remote page)
http://www.surveygizmo.com/forum?forum=3&amp;topic=836</description>
		<content:encoded><![CDATA[<p>cross-domain auto-sizing iFrame solution:</p>
<p>(requires ability to put script into remote page)<br />
<a href="http://www.surveygizmo.com/forum?forum=3&amp;topic=836" rel="nofollow">http://www.surveygizmo.com/forum?forum=3&amp;topic=836</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johny</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-121969</link>
		<dc:creator>johny</dc:creator>
		<pubDate>Fri, 01 Feb 2008 20:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-121969</guid>
		<description>iFrames are often quite handy, and get the job done better than any other simple method. 

people who say &quot;who ajax instead&quot;, i&#039;d love to. can you provide a simplified iFrame replacement in AJAX?

i&#039;m very interested in learning more about AHAH now. hoping to find a simple iFrame replacement in AHAH. not sure how to implement the AHAH example given above.</description>
		<content:encoded><![CDATA[<p>iFrames are often quite handy, and get the job done better than any other simple method. </p>
<p>people who say &#8220;who ajax instead&#8221;, i&#8217;d love to. can you provide a simplified iFrame replacement in AJAX?</p>
<p>i&#8217;m very interested in learning more about AHAH now. hoping to find a simple iFrame replacement in AHAH. not sure how to implement the AHAH example given above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel</title>
		<link>http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-121621</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Mon, 28 Jan 2008 23:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/iframe-height-scrollbar-example/#comment-121621</guid>
		<description>Hello Matt,

Thanks for the tip, I was searching for this for very long time I could not get rid of either the huge space below the content of my page either the ugly scroll down bar...

Now the big mystery... is iframe content crawled by Google?</description>
		<content:encoded><![CDATA[<p>Hello Matt,</p>
<p>Thanks for the tip, I was searching for this for very long time I could not get rid of either the huge space below the content of my page either the ugly scroll down bar&#8230;</p>
<p>Now the big mystery&#8230; is iframe content crawled by Google?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
