<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Dojo_Data_Stores</id>
	<title>Dojo Data Stores - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Dojo_Data_Stores"/>
	<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Dojo_Data_Stores&amp;action=history"/>
	<updated>2026-04-13T00:33:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.scott5.org/index.php?title=Dojo_Data_Stores&amp;diff=173&amp;oldid=prev</id>
		<title>Scott: Created page with &#039; == Source == Json-based data stores need a source (either file, a web service, or a hash object) with this format:  &lt;pre&gt; { identifier: &#039;id&#039;, items: [     {id: 1, width: 50, hei…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Dojo_Data_Stores&amp;diff=173&amp;oldid=prev"/>
		<updated>2011-01-31T22:53:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039; == Source == Json-based data stores need a source (either file, a web service, or a hash object) with this format:  &amp;lt;pre&amp;gt; { identifier: &amp;#039;id&amp;#039;, items: [     {id: 1, width: 50, hei…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Source ==&lt;br /&gt;
Json-based data stores need a source (either file, a web service, or a hash object) with this format: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{ identifier: &amp;#039;id&amp;#039;, items: [&lt;br /&gt;
    {id: 1, width: 50, height: 20},&lt;br /&gt;
    {id: 2, width: 10, height: 20}&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create a Store ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var pantryStore = new dojo.data.ItemFileReadStore({ url: &amp;quot;pantry_items.json&amp;quot; });  // reads entire file into memory&lt;br /&gt;
var recipeStore = new dojox.data.JsonRestStore({target:&amp;quot;/recipeStore&amp;quot;});&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott</name></author>
	</entry>
</feed>