<?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: jQuery : Auto iFrame Height</title>
	<atom:link href="http://www.lost-in-code.com/programming/jquery-auto-iframe-height/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/</link>
	<description>Web Development Resources</description>
	<lastBuildDate>Mon, 30 Jan 2012 10:42:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Elton Morais</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-4/#comment-8936</link>
		<dc:creator>Elton Morais</dc:creator>
		<pubDate>Thu, 19 Jan 2012 12:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8936</guid>
		<description>Hi, Abdul Rehman

On my previous post I had a idea for solve the problem with external content and could it work with ajax.

In a external content, will work only if there&#039;s only the iframe on the page. But the second part (to adjust the height) could work on another situation, like yours.</description>
		<content:encoded><![CDATA[<p>Hi, Abdul Rehman</p>
<p>On my previous post I had a idea for solve the problem with external content and could it work with ajax.</p>
<p>In a external content, will work only if there&#8217;s only the iframe on the page. But the second part (to adjust the height) could work on another situation, like yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prakash</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-4/#comment-8864</link>
		<dc:creator>prakash</dc:creator>
		<pubDate>Wed, 11 Jan 2012 03:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8864</guid>
		<description>i has used iframe auto plugin properly. if i set scrolling = no, so that when content in iframe is increased. The iframe is extend with out scrollbars but is hidden in parent page. I want parent page to be extended.
when iframe extend. so that we wont see ugly scroll bars.</description>
		<content:encoded><![CDATA[<p>i has used iframe auto plugin properly. if i set scrolling = no, so that when content in iframe is increased. The iframe is extend with out scrollbars but is hidden in parent page. I want parent page to be extended.<br />
when iframe extend. so that we wont see ugly scroll bars.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Rehman</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-4/#comment-8810</link>
		<dc:creator>Abdul Rehman</dc:creator>
		<pubDate>Sat, 24 Dec 2011 17:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8810</guid>
		<description>I am using ur code it is working fine but i have a new frame which change content using ajax technique.

onload iframe loads data nicely but when content is changed using ajax iframe do not readjust its height

(My parent page and iframe are on same domain)

Please help me.</description>
		<content:encoded><![CDATA[<p>I am using ur code it is working fine but i have a new frame which change content using ajax technique.</p>
<p>onload iframe loads data nicely but when content is changed using ajax iframe do not readjust its height</p>
<p>(My parent page and iframe are on same domain)</p>
<p>Please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8802</link>
		<dc:creator>Phillip</dc:creator>
		<pubDate>Sat, 10 Dec 2011 22:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8802</guid>
		<description>The plugin works great!  Thanks so much!</description>
		<content:encoded><![CDATA[<p>The plugin works great!  Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elton Morais</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8799</link>
		<dc:creator>Elton Morais</dc:creator>
		<pubDate>Sat, 03 Dec 2011 03:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8799</guid>
		<description>Yes, there&#039;s a simples, idiot and dumb way to get the same result with an external domain...

Instead of use scroll=no on the iframe, I change it to &quot;auto&quot;. Then, I get the size of the actual window

$(window).height();
and use that as the iframe height attribute.

Well, the result is...

We will never have the &quot;page&quot; scroll, only the &quot;iframe&quot; scroll. When You navigate, doesn&#039;t matter who is the scroll, but the important is that there&#039;s only 1.

Well, there&#039;s the problem of the user simply resize the window while he&#039;s navigating. To solve that, I use:

setInterval(getDocHeight, 1);
Did You think that that solution will cause any bugs? It&#039;s working for me, and on the iFrame I had dynamic contect generated by php. I&#039;m afraid of future bugs with that...

Off course, the &quot;iframe&quot; scroll will be, allways, of the same size of the page. So, while navigating, You just see it as it was the &quot;page&quot; scroll.</description>
		<content:encoded><![CDATA[<p>Yes, there&#8217;s a simples, idiot and dumb way to get the same result with an external domain&#8230;</p>
<p>Instead of use scroll=no on the iframe, I change it to &#8220;auto&#8221;. Then, I get the size of the actual window</p>
<p>$(window).height();<br />
and use that as the iframe height attribute.</p>
<p>Well, the result is&#8230;</p>
<p>We will never have the &#8220;page&#8221; scroll, only the &#8220;iframe&#8221; scroll. When You navigate, doesn&#8217;t matter who is the scroll, but the important is that there&#8217;s only 1.</p>
<p>Well, there&#8217;s the problem of the user simply resize the window while he&#8217;s navigating. To solve that, I use:</p>
<p>setInterval(getDocHeight, 1);<br />
Did You think that that solution will cause any bugs? It&#8217;s working for me, and on the iFrame I had dynamic contect generated by php. I&#8217;m afraid of future bugs with that&#8230;</p>
<p>Off course, the &#8220;iframe&#8221; scroll will be, allways, of the same size of the page. So, while navigating, You just see it as it was the &#8220;page&#8221; scroll.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmed</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8792</link>
		<dc:creator>ahmed</dc:creator>
		<pubDate>Wed, 30 Nov 2011 20:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8792</guid>
		<description>very thanks done with IE8 and firefox  but not done in google c

need help
thanks</description>
		<content:encoded><![CDATA[<p>very thanks done with IE8 and firefox  but not done in google c</p>
<p>need help<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wedding Photographer Essex and Suffolk</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8761</link>
		<dc:creator>Wedding Photographer Essex and Suffolk</dc:creator>
		<pubDate>Wed, 16 Nov 2011 10:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8761</guid>
		<description>I&#039;m seriously struggling with this. Think I will give up and get someone else to do it</description>
		<content:encoded><![CDATA[<p>I&#8217;m seriously struggling with this. Think I will give up and get someone else to do it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Stone</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8742</link>
		<dc:creator>Bob Stone</dc:creator>
		<pubDate>Wed, 26 Oct 2011 22:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8742</guid>
		<description>Very nice, thanks :)</description>
		<content:encoded><![CDATA[<p>Very nice, thanks <img src='http://www.lost-in-code.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8735</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 24 Oct 2011 14:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8735</guid>
		<description>Hi,

This wasn&#039;t working for me in FireFox - on line 74 $body[0].scrollHeight always reported the same height, regardless of the height of the content.

I discovered that if I selected a container DIV instead of the body, it worked like a dream in all browsers. So after ensuring everything in the iframe was wrapped in an outer DIV, I edited line 73 to read:

var $body = $(iframe, window.top.document).contents().find(&#039;body &gt; div&#039;);</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This wasn&#8217;t working for me in FireFox &#8211; on line 74 $body[0].scrollHeight always reported the same height, regardless of the height of the content.</p>
<p>I discovered that if I selected a container DIV instead of the body, it worked like a dream in all browsers. So after ensuring everything in the iframe was wrapped in an outer DIV, I edited line 73 to read:</p>
<p>var $body = $(iframe, window.top.document).contents().find(&#8216;body &gt; div&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wedding Phototgrapher</title>
		<link>http://www.lost-in-code.com/programming/jquery-auto-iframe-height/comment-page-3/#comment-8720</link>
		<dc:creator>Wedding Phototgrapher</dc:creator>
		<pubDate>Sat, 01 Oct 2011 12:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=221#comment-8720</guid>
		<description>Just needed to add autoHeight classframe and all went smoothly, thanks for the advice.</description>
		<content:encoded><![CDATA[<p>Just needed to add autoHeight classframe and all went smoothly, thanks for the advice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

