<?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: share dojo among iframes</title>
	<atom:link href="http://www.liucougar.net/blog/archives/88/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liucougar.net/blog/archives/88</link>
	<description></description>
	<pubDate>Sat, 06 Sep 2008 04:52:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6-bleeding</generator>
		<item>
		<title>By: Gloria W</title>
		<link>http://www.liucougar.net/blog/archives/88#comment-96187</link>
		<dc:creator>Gloria W</dc:creator>
		<pubDate>Thu, 01 May 2008 12:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/88#comment-96187</guid>
		<description>Hi liucougar. Congrats on everything good that has happened to you recently. Please send me an email, I want to discuss something with you.
Take care,
G</description>
		<content:encoded><![CDATA[<p>Hi liucougar. Congrats on everything good that has happened to you recently. Please send me an email, I want to discuss something with you.<br />
Take care,<br />
G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://www.liucougar.net/blog/archives/88#comment-80333</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/88#comment-80333</guid>
		<description>Re JP:
You have to explicitly specify which iframe you want to run the code in. However, as you said, it is easy to write a wrapper function to go through all the frames in a page and collect the results, or just a dojo.map should do:

dojo.map(window.frames,function(f){
    return dojo.withGlobal(f.contentWindow,...);
})</description>
		<content:encoded><![CDATA[<p>Re JP:<br />
You have to explicitly specify which iframe you want to run the code in. However, as you said, it is easy to write a wrapper function to go through all the frames in a page and collect the results, or just a dojo.map should do:</p>
<p>dojo.map(window.frames,function(f){<br />
    return dojo.withGlobal(f.contentWindow,&#8230;);<br />
})</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.liucougar.net/blog/archives/88#comment-80330</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 22 Feb 2008 18:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/88#comment-80330</guid>
		<description>Interesting Cougar, thank you for pointing that out. I'll have a look at them.

One other question is, does either of those allow you to operate a function like byId from the parent and have it parse for that id in all the iframes?  Or do you have to implicitly specify the iframe you want to run the byId in.  They are still very powerful functions, and I can see that it would be a breeze to  have another function that wrapped the frame targeting withDoc in a loop of all the iframes and pass back an array of all the returns.  I'm sure with more thought that could also be achieved with dojo.query.  Those seem to be the two main areas of issue I've found with DOM targetting from the top level Dojo into iframes.</description>
		<content:encoded><![CDATA[<p>Interesting Cougar, thank you for pointing that out. I&#8217;ll have a look at them.</p>
<p>One other question is, does either of those allow you to operate a function like byId from the parent and have it parse for that id in all the iframes?  Or do you have to implicitly specify the iframe you want to run the byId in.  They are still very powerful functions, and I can see that it would be a breeze to  have another function that wrapped the frame targeting withDoc in a loop of all the iframes and pass back an array of all the returns.  I&#8217;m sure with more thought that could also be achieved with dojo.query.  Those seem to be the two main areas of issue I&#8217;ve found with DOM targetting from the top level Dojo into iframes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
