<?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"
	>
<channel>
	<title>Comments on: Dojo and iFrames Tip</title>
	<atom:link href="http://jpsykes.com/126/dojo-and-iframes-tip/feed" rel="self" type="application/rss+xml" />
	<link>http://jon.sykes.me/126/dojo-and-iframes-tip</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 09:30:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: JP</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-761</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-761</guid>
		<description>No problem, I just commented on your suggestion, both of those functions look like they are great additions to an iframe beating arsenal.</description>
		<content:encoded><![CDATA[<p>No problem, I just commented on your suggestion, both of those functions look like they are great additions to an iframe beating arsenal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-760</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-760</guid>
		<description>oops, seems my wordpress automatically find the trackback link for me, sorry for the above comment (and this one). Feel free to delete them.</description>
		<content:encoded><![CDATA[<p>oops, seems my wordpress automatically find the trackback link for me, sorry for the above comment (and this one). Feel free to delete them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-759</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-759</guid>
		<description>can't seem to find trackback link here, so have to do it manually:
you can use dojo.withGlobal for iframes, see
http://www.liucougar.net/blog/archives/88</description>
		<content:encoded><![CDATA[<p>can&#8217;t seem to find trackback link here, so have to do it manually:<br />
you can use dojo.withGlobal for iframes, see<br />
<a href="http://www.liucougar.net/blog/archives/88" rel="nofollow">http://www.liucougar.net/blog/archives/88</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fly together Forever &#187; share dojo among iframes</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-758</link>
		<dc:creator>Fly together Forever &#187; share dojo among iframes</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-758</guid>
		<description>[...] pointed out by Jon&#8217;s blog post, simply use the dojo/dijit objects on the top window within an iframe won&#8217;t work for dojo [...]</description>
		<content:encoded><![CDATA[<p>[...] pointed out by Jon&#8217;s blog post, simply use the dojo/dijit objects on the top window within an iframe won&#8217;t work for dojo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-757</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 22 Feb 2008 13:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-757</guid>
		<description>Awesome thanks for the additional details Tony !  That was pretty much the idea I had in mind.  I'd almost be tempted to sit down and try to create a module that you could bolt onto Dojo to make it work with iframes as if they were part of the global page (which would be bundled with any and all security issues it might have).  It would be nice to be able to set a djconfig for usesIframes and just add things like you have here, and byId and the positioning things as extensions to the existing code.</description>
		<content:encoded><![CDATA[<p>Awesome thanks for the additional details Tony !  That was pretty much the idea I had in mind.  I&#8217;d almost be tempted to sit down and try to create a module that you could bolt onto Dojo to make it work with iframes as if they were part of the global page (which would be bundled with any and all security issues it might have).  It would be nice to be able to set a djconfig for usesIframes and just add things like you have here, and byId and the positioning things as extensions to the existing code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-755</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-755</guid>
		<description>Thinking about this, there's a potential issue with taking over the global dojo.publish in that dijit widgets often now publish out event information. 

With this in practice, you might want to be careful that you don't get unexpected cross frame communication.

In the same way we created dojo.localPublish you could make a dojo.globalPublish leaving dojo.publish intact. Depends how you're using it and if you want every use to let every frame know what's going on.</description>
		<content:encoded><![CDATA[<p>Thinking about this, there&#8217;s a potential issue with taking over the global dojo.publish in that dijit widgets often now publish out event information. </p>
<p>With this in practice, you might want to be careful that you don&#8217;t get unexpected cross frame communication.</p>
<p>In the same way we created dojo.localPublish you could make a dojo.globalPublish leaving dojo.publish intact. Depends how you&#8217;re using it and if you want every use to let every frame know what&#8217;s going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-754</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-754</guid>
		<description>Sorry..to elaborate further..

1. We create a version of dojo.publish that will only publish locally so that there's a way of publishing only to this page.
2. We dojo.connect to the real dojo.publish so that every time it's called, connect pushes the values going into the publish, through to the top window along with a reference of the local window.
3. top window publishes the information out over a channel "globalChannel" to all subscribed frame windows.
4. every frame gets the message (including the orig) and we use the current window compared to the reference window to make sure we don't repeat ourselves. All windows other than the source publish it locally with dojo.localPublish.</description>
		<content:encoded><![CDATA[<p>Sorry..to elaborate further..</p>
<p>1. We create a version of dojo.publish that will only publish locally so that there&#8217;s a way of publishing only to this page.<br />
2. We dojo.connect to the real dojo.publish so that every time it&#8217;s called, connect pushes the values going into the publish, through to the top window along with a reference of the local window.<br />
3. top window publishes the information out over a channel &#8220;globalChannel&#8221; to all subscribed frame windows.<br />
4. every frame gets the message (including the orig) and we use the current window compared to the reference window to make sure we don&#8217;t repeat ourselves. All windows other than the source publish it locally with dojo.localPublish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-753</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-753</guid>
		<description>Drop that into all frames. 

It uses the pub sub system to repeat around the pages always bouncing off the top window.</description>
		<content:encoded><![CDATA[<p>Drop that into all frames. </p>
<p>It uses the pub sub system to repeat around the pages always bouncing off the top window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-752</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-752</guid>
		<description>Tony, thanks for the snippet.  Any chance you can give some background to what you're doing here.  I'm especially intrigued with the:

&lt;code&gt;
dojo.connect(dojo, "publish", .....
&lt;/code&gt;

I didn't know that 'publish' was an event you could connect to through the Dojo object.  That really makes things interesting.</description>
		<content:encoded><![CDATA[<p>Tony, thanks for the snippet.  Any chance you can give some background to what you&#8217;re doing here.  I&#8217;m especially intrigued with the:</p>
<p><code><br />
dojo.connect(dojo, "publish", .....<br />
</code></p>
<p>I didn&#8217;t know that &#8216;publish&#8217; was an event you could connect to through the Dojo object.  That really makes things interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://jon.sykes.me/126/dojo-and-iframes-tip#comment-751</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://jpsykes.com/126/dojo-and-iframes-tip#comment-751</guid>
		<description>&lt;code&gt;dojo.localPublish = dojo.publish;
dojo.connect(dojo, &#34;publish&#34;, function(){ window.top.dojo.localPublish(&#34;globalChannel&#34;,[arguments, window]); });
window.top.dojo.subscribe(&#34;globalChannel&#34;,function(args, windw){
    if(windw != self)
        dojo.localPublish(args[0],args[1]);
})    
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>dojo.localPublish = dojo.publish;<br />
dojo.connect(dojo, &quot;publish&quot;, function(){ window.top.dojo.localPublish(&quot;globalChannel&quot;,[arguments, window]); });<br />
window.top.dojo.subscribe(&quot;globalChannel&quot;,function(args, windw){<br />
    if(windw != self)<br />
        dojo.localPublish(args[0],args[1]);<br />
})<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
