<?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 for DojoCampus</title>
	<atom:link href="http://dojocampus.org/content/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojocampus.org/content</link>
	<description>The definitive resource for all things Dojo: past, present, future.</description>
	<pubDate>Thu, 24 Jul 2008 05:44:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on dojo.hitch and scope - more romance by sfoster</title>
		<link>http://dojocampus.org/content/2008/07/15/dojohitch-and-scope-again/#comment-243</link>
		<dc:creator>sfoster</dc:creator>
		<pubDate>Tue, 15 Jul 2008 18:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=154#comment-243</guid>
		<description>@seth - you are absolutely right, I'm looking for a side-effect there which just isn't going to happen. I'll rewrite this later in the interest of accuracy (rather than revisionist history)</description>
		<content:encoded><![CDATA[<p>@seth - you are absolutely right, I&#8217;m looking for a side-effect there which just isn&#8217;t going to happen. I&#8217;ll rewrite this later in the interest of accuracy (rather than revisionist history)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on dijit.Tree - server fetch on node expansion by trutwijd</title>
		<link>http://dojocampus.org/content/2008/06/07/tree-server-fetch-on-node-expansion/#comment-242</link>
		<dc:creator>trutwijd</dc:creator>
		<pubDate>Tue, 15 Jul 2008 17:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=132#comment-242</guid>
		<description>Re: kchiu

Unfortunately, dijit.Tree has some built-in caching mechanisms that make "refreshing" nodes rather difficult.  See comments here: http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/</description>
		<content:encoded><![CDATA[<p>Re: kchiu</p>
<p>Unfortunately, dijit.Tree has some built-in caching mechanisms that make &#8220;refreshing&#8221; nodes rather difficult.  See comments here: <a href="http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/" rel="nofollow">http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on dojo.hitch and scope - more romance by seth</title>
		<link>http://dojocampus.org/content/2008/07/15/dojohitch-and-scope-again/#comment-241</link>
		<dc:creator>seth</dc:creator>
		<pubDate>Tue, 15 Jul 2008 16:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=154#comment-241</guid>
		<description>The example with init() doesn't work for me.  It always prints out the window.location:

Here's what I ran in firebug using dojo 1.0.2 off of the AOL CDN:

dojo.declare("Person", null, {
  constructor: function(name, petName) {
    this.name = name;
    this.getPrivateName = function() {
      return petName;
    }
  },
  getName: function() {
    return this.name;
  },
  getLocation: function() {
    return location;
  }
});

person1 = new Person("Mr. First Person", "cuddles");

function init() {
 var location = "In the init function";
 console.log("init: ", location );
 window.locationGetter1 = function() { return location; };
 window.locationGetter2 = dojo.hitch(person1, person1.getLocation);
 console.log( "init:", locationGetter2() );
}
init();
console.log( location );
console.log( locationGetter1() );
console.log(locationGetter2());</description>
		<content:encoded><![CDATA[<p>The example with init() doesn&#8217;t work for me.  It always prints out the window.location:</p>
<p>Here&#8217;s what I ran in firebug using dojo 1.0.2 off of the AOL CDN:</p>
<p>dojo.declare(&#8221;Person&#8221;, null, {<br />
  constructor: function(name, petName) {<br />
    this.name = name;<br />
    this.getPrivateName = function() {<br />
      return petName;<br />
    }<br />
  },<br />
  getName: function() {<br />
    return this.name;<br />
  },<br />
  getLocation: function() {<br />
    return location;<br />
  }<br />
});</p>
<p>person1 = new Person(&#8221;Mr. First Person&#8221;, &#8220;cuddles&#8221;);</p>
<p>function init() {<br />
 var location = &#8220;In the init function&#8221;;<br />
 console.log(&#8221;init: &#8220;, location );<br />
 window.locationGetter1 = function() { return location; };<br />
 window.locationGetter2 = dojo.hitch(person1, person1.getLocation);<br />
 console.log( &#8220;init:&#8221;, locationGetter2() );<br />
}<br />
init();<br />
console.log( location );<br />
console.log( locationGetter1() );<br />
console.log(locationGetter2());</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dojo Build 201: Layers and CSS Optimizing Builds by denise</title>
		<link>http://dojocampus.org/content/2008/05/26/dojo-build-201-layers-and-css-optimizing-builds/#comment-240</link>
		<dc:creator>denise</dc:creator>
		<pubDate>Tue, 15 Jul 2008 15:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=122#comment-240</guid>
		<description>I haven't been able to play this video.  It crashes the browser in IE 7 and Firefox 3 in Windows XP Pro.  When I try to download it and play it locally, I can see the video in the Quicktime player, but no audio.  I get an error when trying to convert to other formats using various tools.  I can extract the audio track and it plays, but no sound.  Help -- I really, really want to know how to reduce the number of CSS calls when using a custom Dojo build.  Thanks!</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t been able to play this video.  It crashes the browser in IE 7 and Firefox 3 in Windows XP Pro.  When I try to download it and play it locally, I can see the video in the Quicktime player, but no audio.  I get an error when trying to convert to other formats using various tools.  I can extract the audio track and it plays, but no sound.  Help &#8212; I really, really want to know how to reduce the number of CSS calls when using a custom Dojo build.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing a data store by trutwijd</title>
		<link>http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/#comment-239</link>
		<dc:creator>trutwijd</dc:creator>
		<pubDate>Tue, 15 Jul 2008 13:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=130#comment-239</guid>
		<description>Sorry I don't have any answers for refreshing a Tree - did talk to one of the Tree dev's and sounded like the above method (looping over _openedItemIds) should have at least worked.  I'll try to look into it some more to see if there is a solution.  The main problem seems to be convincing a tree node not to check its local data cache...  It might be helpful to file an enhancement request on trac.  (bugs.dojotoolkit.org)

P.S. binspaul, datastore.close() function is not yet available, need to wait till dojo 1.2 for that.</description>
		<content:encoded><![CDATA[<p>Sorry I don&#8217;t have any answers for refreshing a Tree - did talk to one of the Tree dev&#8217;s and sounded like the above method (looping over _openedItemIds) should have at least worked.  I&#8217;ll try to look into it some more to see if there is a solution.  The main problem seems to be convincing a tree node not to check its local data cache&#8230;  It might be helpful to file an enhancement request on trac.  (bugs.dojotoolkit.org)</p>
<p>P.S. binspaul, datastore.close() function is not yet available, need to wait till dojo 1.2 for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing a data store by binspaul</title>
		<link>http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/#comment-238</link>
		<dc:creator>binspaul</dc:creator>
		<pubDate>Mon, 14 Jul 2008 11:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=130#comment-238</guid>
		<description>Why is there a difference in the store fetched earlier  and the store fetched after ?

console.info("Tree store (before) : ");
console.info(_this.tree.store);

// Create a new store.
newStore = new dojo.data.ItemFileWriteStore({url: 'folders.html?hidValAction=getjsondata', jsId: "newFolderStore"});
newStore.fetch();
_this.tree.store = newStore;
						
console.info("Tree store (after) : ");
console.info(_this.tree.store);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The output obtained is :

Tree store (before) :
Object _arrayOfAllItems=[18] _arrayOfTopLevelItems=[18]

GET ........./folders.html?hidValAction=getjsondata

Tree store (after) :
Object _arrayOfAllItems=[0] _arrayOfTopLevelItems=[0]


Best regards,
Binu Paul</description>
		<content:encoded><![CDATA[<p>Why is there a difference in the store fetched earlier  and the store fetched after ?</p>
<p>console.info(&#8221;Tree store (before) : &#8220;);<br />
console.info(_this.tree.store);</p>
<p>// Create a new store.<br />
newStore = new dojo.data.ItemFileWriteStore({url: &#8216;folders.html?hidValAction=getjsondata&#8217;, jsId: &#8220;newFolderStore&#8221;});<br />
newStore.fetch();<br />
_this.tree.store = newStore;</p>
<p>console.info(&#8221;Tree store (after) : &#8220;);<br />
console.info(_this.tree.store);</p>
<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
<p>The output obtained is :</p>
<p>Tree store (before) :<br />
Object _arrayOfAllItems=[18] _arrayOfTopLevelItems=[18]</p>
<p>GET &#8230;&#8230;&#8230;/folders.html?hidValAction=getjsondata</p>
<p>Tree store (after) :<br />
Object _arrayOfAllItems=[0] _arrayOfTopLevelItems=[0]</p>
<p>Best regards,<br />
Binu Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing a data store by binspaul</title>
		<link>http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/#comment-237</link>
		<dc:creator>binspaul</dc:creator>
		<pubDate>Mon, 14 Jul 2008 09:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=130#comment-237</guid>
		<description>For me, the above mentioned methods are not working. The tree is not getting updated.

METHOD 1 :

var _this = this;
newStore = new dojo.data.ItemFileWriteStore({url: 'test.html?hidValAction=getjsondata', jsId: "datStore"});
newStore.fetch();						
_this.tree.model.store.close();
_this.tree.store = newStore;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

METHOD 2 :

var _this = this;

_this.tree.model.store = new dojo.data.ItemFileWriteStore({url: _this.tree.model.store.url});

_this.tree.model.store.fetch();

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The store is getting populated. But it is not getting reflected in the tree.

Best regards,
Binu Paul</description>
		<content:encoded><![CDATA[<p>For me, the above mentioned methods are not working. The tree is not getting updated.</p>
<p>METHOD 1 :</p>
<p>var _this = this;<br />
newStore = new dojo.data.ItemFileWriteStore({url: &#8216;test.html?hidValAction=getjsondata&#8217;, jsId: &#8220;datStore&#8221;});<br />
newStore.fetch();<br />
_this.tree.model.store.close();<br />
_this.tree.store = newStore;</p>
<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
<p>METHOD 2 :</p>
<p>var _this = this;</p>
<p>_this.tree.model.store = new dojo.data.ItemFileWriteStore({url: _this.tree.model.store.url});</p>
<p>_this.tree.model.store.fetch();</p>
<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
<p>The store is getting populated. But it is not getting reflected in the tree.</p>
<p>Best regards,<br />
Binu Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on dijit.Tree - server fetch on node expansion by kchiu</title>
		<link>http://dojocampus.org/content/2008/06/07/tree-server-fetch-on-node-expansion/#comment-236</link>
		<dc:creator>kchiu</dc:creator>
		<pubDate>Thu, 03 Jul 2008 14:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=132#comment-236</guid>
		<description>How to refresh a node in the tree?</description>
		<content:encoded><![CDATA[<p>How to refresh a node in the tree?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing a data store by mikedef</title>
		<link>http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/#comment-235</link>
		<dc:creator>mikedef</dc:creator>
		<pubDate>Thu, 03 Jul 2008 10:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=130#comment-235</guid>
		<description>i tried the following code with my tree and persist was true, but still nothing happens. any other suggestions? i could destroy the old tree any time i need to refresh the data and substitute it with a new one, but this was i have to build all the context menus again as well.

var new_store = new dojo.data.ItemFileReadStore({url: 'poptarts.txt'});
new_store.fetch();
		
var myTree = dijit.byId("tree");

myTree.store = new_store;

dojo.forEach(myTree._openedItemIds, function (item) {
    n = myTree._itemNodeMap(item);
    n.state = "UNCHECKED"
    n.isExpanded = false;
    n.expand();
});</description>
		<content:encoded><![CDATA[<p>i tried the following code with my tree and persist was true, but still nothing happens. any other suggestions? i could destroy the old tree any time i need to refresh the data and substitute it with a new one, but this was i have to build all the context menus again as well.</p>
<p>var new_store = new dojo.data.ItemFileReadStore({url: &#8216;poptarts.txt&#8217;});<br />
new_store.fetch();</p>
<p>var myTree = dijit.byId(&#8221;tree&#8221;);</p>
<p>myTree.store = new_store;</p>
<p>dojo.forEach(myTree._openedItemIds, function (item) {<br />
    n = myTree._itemNodeMap(item);<br />
    n.state = &#8220;UNCHECKED&#8221;<br />
    n.isExpanded = false;<br />
    n.expand();<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing a data store by mikedef</title>
		<link>http://dojocampus.org/content/2008/06/04/refreshing-a-data-store/#comment-234</link>
		<dc:creator>mikedef</dc:creator>
		<pubDate>Tue, 01 Jul 2008 17:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=130#comment-234</guid>
		<description>thanks for the advise. i will take a look at it when i got some time left</description>
		<content:encoded><![CDATA[<p>thanks for the advise. i will take a look at it when i got some time left</p>
]]></content:encoded>
	</item>
</channel>
</rss>
