<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Sun, 07 Mar 2010 12:19:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Renate</title>
		<link>http://www.liucougar.net/blog/archives/88/comment-page-1#comment-181712</link>
		<dc:creator>Renate</dc:creator>
		<pubDate>Mon, 02 Nov 2009 13:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/88#comment-181712</guid>
		<description>Hi!
Thanks for a really good tip!

I am not able to make &quot;dijit.byId&quot; work, only &quot;dojo.byId&quot;! I have been trying different approaches, but can not make it work :(
I am trying to get holdt of a widget in the parent window, from within an iframe..

RenateWR</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Thanks for a really good tip!</p>
<p>I am not able to make &#8220;dijit.byId&#8221; work, only &#8220;dojo.byId&#8221;! I have been trying different approaches, but can not make it work <img src='http://www.liucougar.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
I am trying to get holdt of a widget in the parent window, from within an iframe..</p>
<p>RenateWR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Liu</title>
		<link>http://www.liucougar.net/blog/archives/88/comment-page-1#comment-154206</link>
		<dc:creator>Andre Liu</dc:creator>
		<pubDate>Sun, 28 Sep 2008 08:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucougar.net/blog/archives/88#comment-154206</guid>
		<description>Hey, Nice to know you

我也姓刘

而且也用Dojo

http://www.webwidgetwiki.com</description>
		<content:encoded><![CDATA[<p>Hey, Nice to know you</p>
<p>我也姓刘</p>
<p>而且也用Dojo</p>
<p><a href="http://www.webwidgetwiki.com" rel="nofollow">http://www.webwidgetwiki.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gloria W</title>
		<link>http://www.liucougar.net/blog/archives/88/comment-page-1#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-page-1#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-page-1#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&#039;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&#039;m sure with more thought that could also be achieved with dojo.query.  Those seem to be the two main areas of issue I&#039;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>
