<?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>Life Scaling &#187; postMessage</title>
	<atom:link href="http://orensol.com/tag/postmessage/feed/" rel="self" type="application/rss+xml" />
	<link>http://orensol.com</link>
	<description>Oren Solomianik's Blog</description>
	<lastBuildDate>Mon, 21 Jun 2010 08:10:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cross Domain AJAX Calls and Iframe Communication How To</title>
		<link>http://orensol.com/2009/06/07/cross-domain-ajax-calls-and-iframe-communication-how-to/</link>
		<comments>http://orensol.com/2009/06/07/cross-domain-ajax-calls-and-iframe-communication-how-to/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 13:50:37 +0000</pubDate>
		<dc:creator>Oren</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[cross domain]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fragment]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[postMessage]]></category>
		<category><![CDATA[xd]]></category>
		<category><![CDATA[xd_receiver]]></category>

		<guid isPermaLink="false">http://orensol.com/?p=238</guid>
		<description><![CDATA[<p>I set out to write a short tutorial about cross domain ajax calls and communication between iframes using url hashes (fragments), but I found this <a href="http://softwareas.com/cross-domain-communication-with-iframes" target="_blank">great tutorial by Michael Mahemoff</a> covering the subject inside and out.</p>
<p>It is important to note that the code on his demo uses window.location.hash, although it seems this practice [...]]]></description>
			<content:encoded><![CDATA[<p>I set out to write a short tutorial about cross domain ajax calls and communication between iframes using url hashes (fragments), but I found this <a href="http://softwareas.com/cross-domain-communication-with-iframes" target="_blank">great tutorial by Michael Mahemoff</a> covering the subject inside and out.</p>
<p>It is important to note that the code on his demo uses <code>window.location.hash</code>, although it seems this practice should currently be avoided because of a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=483304" target="_blank">known</a> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=378962" target="_blank">open</a> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=277456" target="_blank">bugs</a> in the way Firefox URI-decodes document.location.hash when getting its value (could be considered an expected behavior and not a bug, but still different than any other browser). <a href="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js" target="_blank">Facebook&#8217;s code</a> uses substring on <code>pathname</code>, and it seems to work cross browser. Facebook also have on their wiki a <a href="http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication" target="_blank">nice visual explanation</a> of how it works:</p>
<p><img src="http://wiki.developers.facebook.com/images/a/a7/Docs_xdcomm.png" alt="" width="495" height="447" /></p>
<p>Until the <a href="https://developer.mozilla.org/En/DOM:window.postMessage" target="_blank">HTML 5 postMessage</a> is widely adopted, we will have to keep using this somewhat of a hack, but it works, that&#8217;s what&#8217;s important.</p>
]]></content:encoded>
			<wfw:commentRss>http://orensol.com/2009/06/07/cross-domain-ajax-calls-and-iframe-communication-how-to/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
