<?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 and Fancybox: How to automatically set the height of an iframe lightbox</title>
	<atom:link href="http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/</link>
	<description>Technology, Web, Toys, Games, Design, Entertainment, Gadgets, &#38; Geeking Out</description>
	<lastBuildDate>Tue, 21 Feb 2012 17:15:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Igor</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-46057</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Sat, 04 Feb 2012 12:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-46057</guid>
		<description>Hi,

thanks for this great how to!! :)

I have only one question:

If I load a iframe which is for example 650px hight. The fancybox starts resizing from the center and after loading it isn&#039;t in the center anymore. How can I center the fancybox after setting the hight?

Igor</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for this great how to!! <img src='http://www.ianhoar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have only one question:</p>
<p>If I load a iframe which is for example 650px hight. The fancybox starts resizing from the center and after loading it isn&#8217;t in the center anymore. How can I center the fancybox after setting the hight?</p>
<p>Igor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinayak Kadolkar</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-44835</link>
		<dc:creator>Vinayak Kadolkar</dc:creator>
		<pubDate>Thu, 12 Jan 2012 08:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-44835</guid>
		<description>Hi that was Great Solution bu it doesn&#039;t work in Chrome and IE(i know it sucks) Can you give some help in this Matter</description>
		<content:encoded><![CDATA[<p>Hi that was Great Solution bu it doesn&#8217;t work in Chrome and IE(i know it sucks) Can you give some help in this Matter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fmaurice</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-44358</link>
		<dc:creator>fmaurice</dc:creator>
		<pubDate>Mon, 02 Jan 2012 12:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-44358</guid>
		<description>Great ! Works perfectly.</description>
		<content:encoded><![CDATA[<p>Great ! Works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hina</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-41209</link>
		<dc:creator>hina</dc:creator>
		<pubDate>Thu, 03 Nov 2011 11:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-41209</guid>
		<description>Thanks for sharing this !
But it seems not working on Chrome, when the jquery is &#039;onComplete&#039; the fancybox-content resize to 30px</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this !<br />
But it seems not working on Chrome, when the jquery is &#8216;onComplete&#8217; the fancybox-content resize to 30px</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Víctor Blasco</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-41040</link>
		<dc:creator>Víctor Blasco</dc:creator>
		<pubDate>Thu, 27 Oct 2011 12:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-41040</guid>
		<description>Thank you so much!!! It works perfect :)</description>
		<content:encoded><![CDATA[<p>Thank you so much!!! It works perfect <img src='http://www.ianhoar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-40004</link>
		<dc:creator>Alessandro</dc:creator>
		<pubDate>Wed, 05 Oct 2011 21:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-40004</guid>
		<description>What I was trying to do is something like this:

&#039;onComplete&#039; : function() {
     $(&#039;#fancybox-frame&#039;).load(function() {
           $(&#039;#fancybox-content&#039;).height($(this).contents().find(&#039;body&#039;).height());
           $(&#039;#fancybox-content&#039;).width($(this).contents().find(&#039;body&#039;).width());
     });
}

in short to automatically set the height and the width of an iframe lightbox but the code above doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>What I was trying to do is something like this:</p>
<p>&#8216;onComplete&#8217; : function() {<br />
     $(&#8216;#fancybox-frame&#8217;).load(function() {<br />
           $(&#8216;#fancybox-content&#8217;).height($(this).contents().find(&#8216;body&#8217;).height());<br />
           $(&#8216;#fancybox-content&#8217;).width($(this).contents().find(&#8216;body&#8217;).width());<br />
     });<br />
}</p>
<p>in short to automatically set the height and the width of an iframe lightbox but the code above doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Hoar</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-40000</link>
		<dc:creator>Ian Hoar</dc:creator>
		<pubDate>Wed, 05 Oct 2011 19:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-40000</guid>
		<description>Hi Alessandro, 

You specify the width to whatever you want it to fit in. I guess you could set the height and then try to figure out the width in order to fit the content. You would have to mess around with it, but the same concept should work.</description>
		<content:encoded><![CDATA[<p>Hi Alessandro, </p>
<p>You specify the width to whatever you want it to fit in. I guess you could set the height and then try to figure out the width in order to fit the content. You would have to mess around with it, but the same concept should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro</title>
		<link>http://www.ianhoar.com/2011/08/25/jquery-and-fancybox-how-to-automatically-set-the-height-of-an-iframe-lightbox/comment-page-1/#comment-39999</link>
		<dc:creator>Alessandro</dc:creator>
		<pubDate>Wed, 05 Oct 2011 19:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4487#comment-39999</guid>
		<description>After 3 hours searching i finally solved my problem! Thanks for your post.
Is it possible to do the same with width?</description>
		<content:encoded><![CDATA[<p>After 3 hours searching i finally solved my problem! Thanks for your post.<br />
Is it possible to do the same with width?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

