<?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>Squash &#187; html</title>
	<atom:link href="http://balpreetpankaj.com/blog/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://balpreetpankaj.com/blog</link>
	<description>Just another weblog</description>
	<lastBuildDate>Sun, 16 Oct 2011 23:32:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facebook Iframe Application: Resize Iframe</title>
		<link>http://balpreetpankaj.com/blog/2009/07/24/facebook-iframe-application-resize-iframe/</link>
		<comments>http://balpreetpankaj.com/blog/2009/07/24/facebook-iframe-application-resize-iframe/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 09:12:09 +0000</pubDate>
		<dc:creator>balpreetspankaj</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebooker]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://balpreetpankaj.com/blog/?p=65</guid>
		<description><![CDATA[If you are using Rails and Facebooker, and you have a resizable Iframe application and you are having problems with resizing, do the following:
a) Make sure that the Iframe is set to Resizable in the Facebook appplication settings.
b) Instead of calling just &#60;%= init_fb_connect "XFBML" %&#62; (as mentioned in all the tutorials), use
&#60;% init_fb_connect &#34;XFBML&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using Rails and Facebooker, and you have a resizable Iframe application and you are having problems with resizing, do the following:</p>
<p>a) Make sure that the Iframe is set to Resizable in the Facebook appplication settings.</p>
<p>b) Instead of calling just &lt;%= init_fb_connect "XFBML" %&gt; (as mentioned in all the tutorials), use</p>
<pre class="ruby">&lt;% init_fb_connect <span style="color:#996600;">&quot;XFBML&quot;</span> <span style="color:#9966CC; font-weight:bold;">do</span> %&gt;
FB.<span style="color:#9900CC;">CanvasClient</span>.<span style="color:#9900CC;">startTimerToSizeToContent</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;
&lt;% <span style="color:#9966CC; font-weight:bold;">end</span> %&gt;</pre>
<p>This should automatically resize your Iframe in the facebook canvas</p>
]]></content:encoded>
			<wfw:commentRss>http://balpreetpankaj.com/blog/2009/07/24/facebook-iframe-application-resize-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Div inside a p : Invalid HTML</title>
		<link>http://balpreetpankaj.com/blog/2009/01/28/div-inside-a-p-invalid-html/</link>
		<comments>http://balpreetpankaj.com/blog/2009/01/28/div-inside-a-p-invalid-html/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 23:20:47 +0000</pubDate>
		<dc:creator>balpreetspankaj</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[p]]></category>
		<category><![CDATA[simple_captcha]]></category>
		<category><![CDATA[w3C]]></category>

		<guid isPermaLink="false">http://balpreetpankaj.com/blog/?p=38</guid>
		<description><![CDATA[I was trying to center an element using the p tag. Like :
&#60;p style="margin-left:auto; magin-right:auto; width: 50 em;"&#62;
&#60;%= show_simple_captcha %&#62;
&#60;/p&#62;
show_simple_captcha is a helper method from the simple captcha rails plugin. This view helper generates a div which helps in captcha validation. Now, this created a problem. This piece of code started to behave randomly in [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to center an element using the p tag. Like :<br />
&lt;p style="margin-left:auto; magin-right:auto; width: 50 em;"&gt;<br />
&lt;%= show_simple_captcha %&gt;<br />
&lt;/p&gt;</p>
<p>show_simple_captcha is a helper method from the simple captcha rails plugin. This view helper generates a div which helps in captcha validation. Now, this created a problem. This piece of code started to behave randomly in IE. Even the source generated in Firefox is invalid HTML. After much scratching arnd, I found that &lt;div&gt; tags are not allowed inside &lt;p&gt; tags. Strange !! I dont have a reason of the top of my head as to why this is disallowed, but this is invalid W3C HTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://balpreetpankaj.com/blog/2009/01/28/div-inside-a-p-invalid-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

