<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
>
  <channel>
    <title>i xfree</title>
    <link>http://mjsawyerjr.chudadi.com/</link>
    <description>Thoughts on free softwares and web</description>
    <language>en</language>    <item>
      <title>Simple Grid + JSON Store</title>
      <link>http://mjsawyerjr.chudadi.com/2008/10/06/simple-grid-json-store.html</link>
      <description>Sample Dojo Grid with JSON access below
Works on behalf of Dojo 1.2, as well as not on behalf of earlier versions. 
&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/html4/loose.dtd&#8221;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Layout Markup Basic&lt;/title&gt;
&lt;style type=&#8221;text/css&#8221;&gt;
@import &#8220;dijit/themes/soria/soria.css&#8221;;
@import &#8220;dijit/themes/tundra/tundra.css&#8221;;
@import &#8220;dojox/grid/resources/Grid.css&#8221;;
@import &#8220;dojox/grid/resources/tundraGrid.css&#8221;;
@import &#8220;general.css&#8221;;
&lt;/style&gt;
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;dojo/dojo.js&#8221; djConfig=&#8221;isDebug:false, parseOnLoad: true&#8221;&gt;&lt;/script&gt;
&lt;script type=&#8221;text/javascript&#8221;&gt;
dojo.require(&#8221;dojo.data.ItemFileReadStore&#8221;);
dojo.require(&#8221;dojox.grid.DataGrid&#8221;);
dojo.require(&#8221;dojo.parser&#8221;);
dojo.require(&#8221;dijit.form.Button&#8221;);
dojo.require(&#8221;dijit.form.TextBox&#8221;);
dojo.require(&#8221;dijit.form.DateTextBox&#8221;);
dojo.require(&#8221;dijit.form.ComboBox&#8221;);
dojo.require(&#8221;dijit.layout.ContentPane&#8221;);
dojo.require(&#8221;dijit.layout.TabContainer&#8221;);
var jsonStore = new dojo.data.ItemFileReadStore({ url: &#8220;MyJson.jsp&#8221; });
&lt;/script&gt;
&lt;/head&gt;
&lt;body>
&lt;table>
query=&#8221;{ customer_name: &#8216;*&#8217; }&#8221; store=&#8221;jsonStore&#8221;>
&lt;thead&gt;
&lt;tr&gt;
&lt;th field=&#8221;customer_name&#8221;&gt;Customer Name&lt;/th&gt;
&lt;th field=&#8221;customer_address&#8221; width=&#8221;100px&#8221;&gt;Customer Address&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
MyJson.jsp Sample goes below:
&lt;%@ taglib prefix=&#8221;json&#8221; uri=&#8221;http://www.atg.com/taglibs/json&#8221; %&gt;
&lt;json:object&gt;
&lt;json:array name=&#8221;items&#8221; var=&#8221;item&#8221; items=&#8221;2&#8243;&gt;
&lt;json:object&gt;
&lt;json:property name=&#8221;customer_name&#8221; value=&#8221;nancy&#8221;/&gt;
&lt;json:property name=&#8221;customer_address&#8221; value=&#8221;LA&#8221;/&gt;
&lt;/json:object&gt;
&lt;json:object&gt;
&lt;json:property name=&#8221;customer_name&#8221; value=&#8221;ken&#8221;/&gt;
&lt;json:property name=&#8221;customer_address&#8221; value=&#8221;CA&#8221;/&gt;
&lt;/json:object&gt;
&lt;/json:array&gt;
&lt;/json:object&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</description>
      <pubDate>Mon, 06 Oct 2008 13:17:15 -0400</pubDate>
      <dc:creator>mjsawyerjr</dc:creator>
    </item></channel></rss>