<?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: Set a Dynamic Width / Height on Fancybox</title>
	<atom:link href="http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/</link>
	<description>The Blog of Ben Lister</description>
	<lastBuildDate>Tue, 10 Jan 2012 11:14:28 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: satya</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-494</link>
		<dc:creator>satya</dc:creator>
		<pubDate>Mon, 05 Dec 2011 06:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-494</guid>
		<description>Thanks a lot for this!
great work  for me right now..</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this!<br />
great work  for me right now..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hose</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-490</link>
		<dc:creator>hose</dc:creator>
		<pubDate>Sat, 12 Nov 2011 09:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-490</guid>
		<description>Thanks a lot for this!
great solution for me right now..</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this!<br />
great solution for me right now..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Kay</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-477</link>
		<dc:creator>Rob Kay</dc:creator>
		<pubDate>Fri, 24 Jun 2011 19:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-477</guid>
		<description>Just used the simple non-flash version on a site. Brilliant idea using parameters for the height/width! Thanx a lot:-)

Also, if you set the &#039;autoScale&#039; to &#039;true&#039; then it&#039;ll make the window the size you want on a big screen but shrink to within window bounds on a small one which is handy.

Rob</description>
		<content:encoded><![CDATA[<p>Just used the simple non-flash version on a site. Brilliant idea using parameters for the height/width! Thanx a lot:-)</p>
<p>Also, if you set the &#8216;autoScale&#8217; to &#8216;true&#8217; then it&#8217;ll make the window the size you want on a big screen but shrink to within window bounds on a small one which is handy.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarpit Grover</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-465</link>
		<dc:creator>Tarpit Grover</dc:creator>
		<pubDate>Tue, 29 Mar 2011 15:43:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-465</guid>
		<description>Many Thanks Mate.</description>
		<content:encoded><![CDATA[<p>Many Thanks Mate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-462</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 07 Mar 2011 09:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-462</guid>
		<description>This code just saved my butt. What a great idea just adding the parameters to the URL. And to think I was going to add two columns to my MySQL database to store the parameters! 

Thanks again!</description>
		<content:encoded><![CDATA[<p>This code just saved my butt. What a great idea just adding the parameters to the URL. And to think I was going to add two columns to my MySQL database to store the parameters! </p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Garland</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-453</link>
		<dc:creator>John Garland</dc:creator>
		<pubDate>Thu, 30 Dec 2010 18:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-453</guid>
		<description>I added the following code incase the height and width were not specified. I&#039;m sure it could be cleaner. O well.

if($(this).attr(&#039;href&#039;).match(/width=[0-9]+/i))
						  {
						         var dWidth  = parseInt($(this).attr(&#039;href&#039;).match(/width=[0-9]+/i)[0].replace(&#039;width=&#039;,&#039;&#039;));
						  }
						  else
						  {
							  var dWidth=$(window).width();
						  }
						  if($(this).attr(&#039;href&#039;).match(/height=[0-9]+/i)){  
						         var dHeight     =  parseInt($(this).attr(&#039;href&#039;).match(/height=[0-9]+/i)[0].replace(&#039;height=&#039;,&#039;&#039;));
						  }
						  else
						  {
							  var dWidth=$(window).width();
						  }</description>
		<content:encoded><![CDATA[<p>I added the following code incase the height and width were not specified. I&#8217;m sure it could be cleaner. O well.</p>
<p>if($(this).attr(&#8217;href&#8217;).match(/width=[0-9]+/i))<br />
						  {<br />
						         var dWidth  = parseInt($(this).attr(&#8217;href&#8217;).match(/width=[0-9]+/i)[0].replace(&#8217;width=&#8217;,&#8221;));<br />
						  }<br />
						  else<br />
						  {<br />
							  var dWidth=$(window).width();<br />
						  }<br />
						  if($(this).attr(&#8217;href&#8217;).match(/height=[0-9]+/i)){<br />
						         var dHeight     =  parseInt($(this).attr(&#8217;href&#8217;).match(/height=[0-9]+/i)[0].replace(&#8217;height=&#8217;,&#8221;));<br />
						  }<br />
						  else<br />
						  {<br />
							  var dWidth=$(window).width();<br />
						  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daily Digest November 20th</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-449</link>
		<dc:creator>Daily Digest November 20th</dc:creator>
		<pubDate>Sat, 20 Nov 2010 19:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-449</guid>
		<description>[...] Shared Set a Dynamic Width / Height on Fancybox « Dark Crimson Blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] Shared Set a Dynamic Width / Height on Fancybox « Dark Crimson Blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dloop</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-442</link>
		<dc:creator>dloop</dc:creator>
		<pubDate>Sun, 12 Sep 2010 22:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-442</guid>
		<description>i too cannot get the iframe dynamic height to work, using your exact code. how about an example to show that it actually works?</description>
		<content:encoded><![CDATA[<p>i too cannot get the iframe dynamic height to work, using your exact code. how about an example to show that it actually works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Lister</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-431</link>
		<dc:creator>Ben Lister</dc:creator>
		<pubDate>Thu, 12 Aug 2010 03:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-431</guid>
		<description>The code should be applied in the same spot you are applying the call to fancybox. Many people have this in a different JS file that contains other actions but it could be placed directly on your HTML page as well. 

If you are still stuck, I would suggest getting it to work with the methods  described in &lt;a href=&quot;http://fancybox.net/howto&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;fancybox&#039;s documentation&lt;/a&gt; and then try to add the dynamic functionality.</description>
		<content:encoded><![CDATA[<p>The code should be applied in the same spot you are applying the call to fancybox. Many people have this in a different JS file that contains other actions but it could be placed directly on your HTML page as well. </p>
<p>If you are still stuck, I would suggest getting it to work with the methods  described in <a href="http://fancybox.net/howto" target="_blank" rel="nofollow">fancybox&#8217;s documentation</a> and then try to add the dynamic functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://blog.darkcrimson.com/2010/03/set-a-dynamic-width-height-on-fancybox/comment-page-1/#comment-414</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Wed, 21 Jul 2010 18:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkcrimson.com/?p=182#comment-414</guid>
		<description>i added the above mentioned iFrame-code to my site but it doesn´t work. Fancybox just opens the link in a new window...

do i add the code to the index.html or to the fancybox javascript?</description>
		<content:encoded><![CDATA[<p>i added the above mentioned iFrame-code to my site but it doesn´t work. Fancybox just opens the link in a new window&#8230;</p>
<p>do i add the code to the index.html or to the fancybox javascript?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

