<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; iframe</title>
	<atom:link href="http://www.sajithmr.me/tag/iframe/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fancybox runtime height change</title>
		<link>http://www.sajithmr.me/fancybox-runtime-height-change</link>
		<comments>http://www.sajithmr.me/fancybox-runtime-height-change#comments</comments>
		<pubDate>Fri, 20 Nov 2009 16:05:51 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[autoheight]]></category>
		<category><![CDATA[fancybox]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[runtime]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=522</guid>
		<description><![CDATA[For those who use fancy box and iframe inside fancy box might face the issue of changing the height. Once fancybox is loaded with a particular height and width, it does not change when you change the content inside iframe dynamically. Auto height change is only possible for images. Use the below code to change [...]]]></description>
			<content:encoded><![CDATA[<p>For those who use fancy box and iframe inside fancy box might face the issue of changing the height. Once fancybox is loaded with a particular height and width, it does not change when you change the content inside iframe dynamically. Auto height change is only possible for images.</p>
<p>Use the below code to change the dimensions of an iframe in runtime.</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>parent.$(&#8220;#fancy_outer&#8221;).width(100); parent.$(&#8220;#fancy_outer&#8221;).height(120);</p>
<p>&lt;/script&gt;</p>
<p>Cheers</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/fancybox-runtime-height-change/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Just a second with Iframe</title>
		<link>http://www.sajithmr.me/just-a-second-with-iframe</link>
		<comments>http://www.sajithmr.me/just-a-second-with-iframe#comments</comments>
		<pubDate>Wed, 11 Nov 2009 20:07:59 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=490</guid>
		<description><![CDATA[IF you are facing problem with layout issues inside iframe (which is normally not there in normal pages) just test these things. Iframe is considered as a separate html page. So it needs all the basic tags, from html, head, body. It does not get styles from parent, so you need to add manually in [...]]]></description>
			<content:encoded><![CDATA[<p>IF you are facing problem with layout issues inside iframe (which is normally not there in normal pages) just test these things.</p>
<p><img class="alignnone size-full wp-image-493" title="flex-iframe-logo-128" src="http://www.sajithmr.me/wp-content/uploads/2009/11/flex-iframe-logo-128.png" alt="flex-iframe-logo-128" width="128" height="128" /></p>
<ul>
<li>Iframe is considered as a separate html page. So it needs all the basic tags, from html, head, body.</li>
<li>It does not get styles from parent, so you need to add manually in the header</li>
<li>Take care of javascript calls  separated with parent and local (if anything related with parent , use parent. , for example, to access a jQuery script from parent use, parent.$.function_name)</li>
<li>Avoid define styles inside body tag with &lt;style&gt; tags, place them in &lt;head&gt; tag</li>
<li>To solve the layout issues, you must use the DOCTYPE tag at the beginning</li>
<li>If you are using any autoheight scripts to control iframe height dynamically, remember, it may not work as expected in all browser. (jQuery autoheight plugin sometimes fails in OPERA)</li>
</ul>
<pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;</pre>
<p>There is a saying that using iframe is a bad practise. I don&#8217;t know the fact, anyway gmail uses more than 5 iframes to implement all the features and works well. (See<a href="http://www.sajithmr.me/gmail-architecture/" target="_blank"> Gmail Architecture</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/just-a-second-with-iframe/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fancy box</title>
		<link>http://www.sajithmr.me/fancy-box</link>
		<comments>http://www.sajithmr.me/fancy-box#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:58:16 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[fancybox]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=471</guid>
		<description><![CDATA[Finally I found a good light-box which really matches the name &#8220;Light box&#8221; in FancyBox.  It is a jQuery based light window. It has very less features while compare with any other light box, but simple to use. Compatible with all browsers. Go here to find it : http://fancybox.net/ You need to add the below [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I found a good light-box which really matches the name &#8220;Light box&#8221; in FancyBox.  It is a jQuery based light window. It has very less features while compare with any other light box, but simple to use. Compatible with all browsers.</p>
<p><img class="alignnone size-medium wp-image-472" title="bg_logo" src="http://www.sajithmr.me/wp-content/uploads/2009/11/bg_logo-300x81.gif" alt="bg_logo" width="300" height="81" /></p>
<p>Go here to find it : <a href="http://fancybox.net/" target="_blank">http://fancybox.net/</a></p>
<p>You need to add the below javascript in addition to the jquery js file.</p>
<p><code>&lt;script type="text/javascript" src="path-to-file/jquery.fancybox.js"&gt;&lt;/script&gt; </code></p>
<p>To create a link to open in fancybox, call the function fancybox. For example, if you have a link pointing an image &lt;a href=&#8221;myimage.gif&#8221; id=&#8221;imglink&#8221; /&gt;</p>
<p>Call</p>
<p>&lt;script&gt;</p>
<p>$(&#8220;#imglink&#8221;).fancybox();</p>
<p>&lt;/script&gt;</p>
<p>The window automatically resize with image. If you put <strong>title</strong> attribute, it shows the title below with the light window.</p>
<p>Instead of image, you can point a file. If you need to open that file in iframe, use <span style="color: #008000;"><strong>class</strong></span>=<span style="color: #3366ff;"><em><strong>&#8220;iframe&#8221;</strong></em></span></p>
<p>Visit<a href="http://fancybox.net/howto" target="_blank"> http://fancybox.net/howto</a> for more usability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/fancy-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

