<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dojo Muse</title>
	<atom:link href="http://phillipsb1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phillipsb1.wordpress.com</link>
	<description>Dojo development for Web 2.0 applications</description>
	<lastBuildDate>Mon, 26 Sep 2011 03:15:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='phillipsb1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dojo Muse</title>
		<link>http://phillipsb1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://phillipsb1.wordpress.com/osd.xml" title="Dojo Muse" />
	<atom:link rel='hub' href='http://phillipsb1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dojo and Geospatial mash ups</title>
		<link>http://phillipsb1.wordpress.com/2011/09/26/dojo-and-geospatial-mash-ups/</link>
		<comments>http://phillipsb1.wordpress.com/2011/09/26/dojo-and-geospatial-mash-ups/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 03:15:27 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Dojo]]></category>
		<category><![CDATA[dojo 1.5]]></category>
		<category><![CDATA[Mapping]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=191</guid>
		<description><![CDATA[I have been having a bit of luck lately building mash ups using Dojo and the Open Layers toolkit.  The open layers kit allows me the ability to write JavaScript to visualize maps without committing to a single data provider.  It has been a little painful though.  When I attempt to embed a mapping control [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=191&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been having a bit of luck lately building mash ups using Dojo and the Open Layers toolkit.  The open layers kit allows me the ability to write JavaScript to visualize maps without committing to a single data provider.  It has been a little painful though.  When I attempt to embed a mapping control into the Dojo container, it breaks the map, or it breaks the layout.  In either case, it is just broken.</p>
<p>The get-well fix was pretty straightforward.  Just don&#8217;t do that.  I found no easy way to cohabitate dojo containers with mapping controls such as Goolge Maps or Amazon Maps, so I was forced to do all of my layout using standard divs, and to only use dojo for the html control itself.  It seems to work just fine so long as the dojo control is rendered ON TOP of the other controls.  Do not embed the map within the control though.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=191&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2011/09/26/dojo-and-geospatial-mash-ups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>A note about grid validation</title>
		<link>http://phillipsb1.wordpress.com/2011/01/11/a-note-about-grid-validation/</link>
		<comments>http://phillipsb1.wordpress.com/2011/01/11/a-note-about-grid-validation/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 22:00:29 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[dojo 1.5]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=185</guid>
		<description><![CDATA[I&#8217;ve been spending some time looking at the validation techniques used for dojo grid. Basically I&#8217;ve come to the conclusion that unless your validation is pretty trivial (drop down lists, etc), the entire thing is still half baked. What I&#8217;ve done instead is adopted the idea that my dojo client code will simply format input [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=185&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been spending some time looking at the validation techniques used for dojo grid.  Basically I&#8217;ve come to the conclusion that unless your validation is pretty trivial (drop down lists, etc), the entire thing is still half baked.</p>
<p>What I&#8217;ve done instead is adopted the idea that my dojo client code will simply format input data (red=bad, etc) if it needs fixing, and let the user see it.  If the user attempts to push bad data, I will catch it on the server and reject it.</p>
<p>That means that all I need to do for dojo is to define a function to be my formatter.  This function accepts a single parameter, and returns some html indicating what to display in the grid.  So far, so good.  Granted, I&#8217;d really rather use a robust validation framework for the grid data, but sadly, there isn&#8217;t one there.</p>
<p>So when you find yourself hitting 4 hours of frustration on validating grid input, my advice is to format the input, show the user where his error is, and be really good about server side input validation when the data is submitted.</p>
<p><code><br />
var myformatter = function(s)<br />
{<br />
var RegularExpression  =  new RegExp("^\\d+$");<br />
if(RegularExpression.test(s))<br />
{<br />
return s;<br />
}<br />
else<br />
{<br />
return "<span style="background-color:red;">&lt;span style='background-color:red'&gt;"+s+"&lt;/span&gt;</span>";<br />
}</code></p>
<p>Then later on you can use the formatter in your markup like this&#8230;<br />
<code><br />
&lt;table dojoType="dojox.grid.DataGrid" store="myStore"<br />
query="{statename: '*' }" style="width:650px;height:500px" &gt;</code></p>
<p>&lt;thead&gt;<br />
&lt;tr&gt;<br />
&lt;th field=&#8221;statename&#8221; width=&#8221;200px&#8221;&gt;State Name&lt;/th&gt;<br />
&lt;th field=&#8221;population&#8221; width=&#8221;200px&#8221;<br />
editable=&#8221;true&#8221;<br />
formatter=&#8221;myformatter&#8221;<br />
&gt;Population&lt;/th&gt;<br />
&lt;th field=&#8221;spending&#8221; width=&#8221;200px&#8221;<br />
editable=&#8221;true&#8221; formatter=&#8221;mydecimalformatter&#8221;<br />
&gt;Spending ($billions)&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;/thead&gt;<br />
&lt;/table&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=185&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2011/01/11/a-note-about-grid-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>Another dojo grid example</title>
		<link>http://phillipsb1.wordpress.com/2011/01/11/another-dojo-grid-example/</link>
		<comments>http://phillipsb1.wordpress.com/2011/01/11/another-dojo-grid-example/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 19:50:00 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[dojo 1.5]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=179</guid>
		<description><![CDATA[I&#8217;ve gotten fed up with searching with a really thin example of using a data store to power a grid through markup. I have put together a project that has both the thin html code, and a json data set. Hopefully this will help people who are doing a similar 3-day search for the simplest [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=179&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve gotten fed up with searching with a really thin example of using a data store to power a grid through markup.  I have put together a project that has both the thin html code, and a json data set.  Hopefully this will help people who are doing a similar 3-day search for the simplest of dojo code examples&#8230;</p>
<p>Note: this is based on the dojo 1.5 aol hosted version.</p>
<p>Link: <a href="http://dl.dropbox.com/u/13822973/basic%20dojo%20grid%20example/basicmarkupdojogrid.zip">Click Here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=179&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2011/01/11/another-dojo-grid-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>ARG!  They did it again!  They changed something without documenting it!</title>
		<link>http://phillipsb1.wordpress.com/2010/09/02/arg-they-did-it-again-they-changed-something-without-documenting-it/</link>
		<comments>http://phillipsb1.wordpress.com/2010/09/02/arg-they-did-it-again-they-changed-something-without-documenting-it/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 02:46:55 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[dojo 1.5]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=176</guid>
		<description><![CDATA[Ok, now that I&#8217;m back in the dojo business, I&#8217;ve had yet another taste of configuration management pain. For some reason, the DataGrid is back to using the old verbage. Don&#8217;t bother with editorClass, etc. Here is my basic attempt at a grid definition. Code follows below&#8230; var detail_view = { cells: [[ {name:"Date Time", [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=176&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok, now that I&#8217;m back in the dojo business, I&#8217;ve had yet another taste of configuration management pain.  For some reason, the DataGrid is back to using the old verbage.  Don&#8217;t bother with editorClass, etc.</p>
<p>Here is my basic attempt at a grid definition.  Code follows below&#8230;</p>
<p><code>var detail_view = {<br />
		cells: [[<br />
	        		{name:"Date Time", field: "STAMP", width: "90px",editable:true,</p>
<p>                                    cellType:"dojox.grid.cells._Widget",<br />
                                    widgetClass: "dijit.form.ValidationTextBox"<br />
                                },<br />
                                {name:"workout", field: "WORKOUT_NAME", width: "100px"},<br />
	        		{name:"Rounds", field: "ROUNDS_METRIC", width: "65px",editable:true},<br />
	        		{name:"Time", field: "TIME_METRIC", width: "65px", editable:true},<br />
                                {name:"Reps", field: "REP_METRIC", width: "65px", editable:true},<br />
                                {name:"Weight", field: "WEIGHT_METRIC", width: "65px",editable:true},<br />
                                {name:"Points", field: "POINTS_METRIC", width: "60px",editable:true},<br />
                                {name:"Notes", field:"NOTES", width:"110px",editable:true}<br />
	        	]]<br />
	};<br />
var detail_layout = [ detail_view ];</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=176&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2010/09/02/arg-they-did-it-again-they-changed-something-without-documenting-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>Date and Time based Charts</title>
		<link>http://phillipsb1.wordpress.com/2010/07/25/date-and-time-based-charts/</link>
		<comments>http://phillipsb1.wordpress.com/2010/07/25/date-and-time-based-charts/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 15:22:45 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=167</guid>
		<description><![CDATA[It&#8217;s been a while since my last post (blame work and Call of Duty 4) but I finally have a project that will generate a few dojo posts.  Lately I&#8217;ve been working on web application that uses charting, one axis is numeric, and the other contains dates.  Sounds easy right?  Well, it turns out that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=167&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since my last post (blame work and Call of Duty 4) but I finally have a project that will generate a few dojo posts.  Lately I&#8217;ve been working on web application that uses charting, one axis is numeric, and the other contains dates.  Sounds easy right?  Well, it turns out that there was a bit of a learning curve.  This post contains a few hard earned gems that I found while creating it.  </p>
<p>When creating a dojo chart, there are a few invisible things going on, and not going on.  When I went through the web looking for charting examples, I found a lot of examples showing how to define a simple series, but not a lot of examples with 2 dimensional data.  Dojo charts need to be configured by adding axis objects to the chart.  It is incredible important that these axis names correspond to the value names in your data.  What do I mean by this?</p>
<p><code><br />
dojo.addOnLoad(function(){<br />
var chart1 = new dojox.charting.Chart2D("simplechart");<br />
chart1.addPlot("default",<br />
{ type: "Lines" } );<br />
chart1.addAxis("x",{labelFunc:labelfTime});<br />
chart1.addAxis("y", {vertical: true});<br />
chart1.addSeries("Series 1", data.pts);<br />
</code></p>
<p>The above is a code snippet that works pretty well when you have json that looks like this:<em>[{x:1,y:2},{x:2,y:4}]</em>.  In some cases, I have managed to get the charting system to fail when using names other than x and y. It seemed to be intuitive that I could have an axis called xd, then set up the json to look like <em>[{xd:1,y:2},{xd:2,y:4}]</em>. It fails under Firefox.  So the first rule of charting safety is AXIS NAMES ARE ALWAYS x OR y.  I&#8217;m sure there are caveats to this, but for 2 dimensional charting, stick with the basics.</p>
<p>The next issue is the date itself.  It is tempting to think of a date as something like &#8217;3/8/2010&#8242;, but if you do, you&#8217;ve just signed up for trouble.  When dealing with linear displays, the dojo charting system has no idea how to take formatted dates and put them on a chart.  When you are using categories, it&#8217;s no problem.  But lines, well, that&#8217;s different.  The solution to this issue is to think about a date as a number, not a string.  Javascript Date objects can represent themselves using the date epoch, which is the number of milliseconds since midnight 1 Jan 1970.  If you simply use this epoch date instead of a string, then the charting system can figure out how to draw the line.</p>
<p>Of course, when you do that, you end up with a bunch of huge numbers on your axis for your users to read (in disbelief).  We want to display a human readable date, while plotting the computer readable epoch date.  Luckily, the dojo team have provide a method to do just that.  When an axis is defined for dojo, a function can be assigned to the labelFunc property.  This function accepts a number based on that axis, and returns a label to be displayed.<br />
<code><br />
function labelfTime(o)<br />
      {<br />
           var dt = new Date();<br />
           dt.setTime(o);<br />
           var d = (dt.getMonth()+1)+"/"+dt.getDate()+"/"+dt.getFullYear();<br />
           return d;<br />
      }<br />
 chart1.addAxis("x",{labelFunc:labelfTime});<br />
</code></p>
<p>The above code accepts input from the chart based upon the numeric epoch date.  It then translates that date into a human readable label, and returns it to the charting system.  Now your axis simply places it on the display in the right spot.</p>
<p>Of course, none of this does any good if you are using IE 8 with Dojo 1.4.  The label system is buggy under that combination.  Labels will not appear, nor will any error messages, leaving you to spend weeks pulling your hair out.  Upgrade to dojo 1.5 to fix it and save your sanity.</p>
<p>The source code can be downloaded from <a href="http://phillipsb1.files.wordpress.com/2010/07/dojo_chart_example_1.docx">here</a> if needed.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=167&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2010/07/25/date-and-time-based-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>Dojo Tree Icons</title>
		<link>http://phillipsb1.wordpress.com/2010/05/21/dojo-tree-icons/</link>
		<comments>http://phillipsb1.wordpress.com/2010/05/21/dojo-tree-icons/#comments</comments>
		<pubDate>Fri, 21 May 2010 19:58:58 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=163</guid>
		<description><![CDATA[It has been a while since I have posted. I&#8217;ve been off doing non-dojo things, so my brain hasn&#8217;t been focused on posting to the blog. Now that I&#8217;ve finally gotten my projects up to Dojo 1.3, 1.4 has come out. I&#8217;ll be posting based on my 1.3 build until the upgrade and testing gets [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=163&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It has been a while since I have posted.  I&#8217;ve been off doing non-dojo things, so my brain hasn&#8217;t been focused on posting to the blog.  Now that I&#8217;ve finally gotten my projects up to Dojo 1.3, 1.4 has come out.  I&#8217;ll be posting based on my 1.3 build until the upgrade and testing gets put into my project schedule.</p>
<p>My post today is about the dijit.Tree and the custom Icon capability.  What this does is lets you inspect your data source to determine various attributes of your data, and change the icon based on that data set.  Ideally all you have to do is to put a few if-then statements inside a script tag, and return a class name.  The class can be defined in the css file. </p>
<p>I&#8217;ve found in some cases, that just doesn&#8217;t work.  In some cases, when you load a page inside another frame or layout container, things might get screwy.  Recently I used a set of nested dijit.layout.BorderContainer div tags to divide up my page, and dynamically loaded urls into content panes.  Users could click buttons and that content pane would navigate to the different page.  Under Firefox, the css just got lost in the shuffle.  It&#8217;s odd that I have reference to the css from dojo, and the javascript, but not my new application css.  The work around is to define your css classes inside your page contained in the Border Container.  Here is a sample&#8230;</p>
<p><code><br />
.nihilo .itemA<br />
{<br />
    border-top: 0px;<br />
	background: url('./icons/itemA.jpg') ;<br />
	width: 16px;<br />
	height: 16px;<br />
	background-position : top left;<br />
    background-repeat : repeat-y;<br />
    zoom: 1;<br />
}<br />
.nihilo .itemB<br />
{<br />
    border-top: 0px;<br />
	background: url('./icons/itemB.jpg') ;<br />
	width: 16px;<br />
	height: 16px;<br />
	background-position : top left;<br />
    background-repeat : repeat-y;<br />
    zoom: 1;<br />
}</code></p>
<p>Then below where we define our tags, insert the event code.</p>
<p><code>
<div id="mytree">
<p>      var pickThisClass= (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "other"<br />
      if(pickThisClass=="other")<br />
	  {<br />
		if(experimentstore.getValue(item, "model")=="A")<br />
		{<br />
			return "itemA";<br />
		}<br />
		if(experimentstore.getValue(item, "model")=="B")<br />
		{<br />
			return "itemB";<br />
		}<br />
      }<br />
      return "dijitFolderOpened"; //default if nothing is there</p>
</div>
<p></code></p>
<p>That seems to get the dynamic icon up and working just fine!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=163&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2010/05/21/dojo-tree-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>Dojo charts</title>
		<link>http://phillipsb1.wordpress.com/2009/12/17/dojo-charts/</link>
		<comments>http://phillipsb1.wordpress.com/2009/12/17/dojo-charts/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 21:54:27 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=161</guid>
		<description><![CDATA[If anyone is wondering where I&#8217;ve been the past few weeks, I&#8217;ve been dealing with the hot-mess called dojox.charting. It&#8217;s taken me a week or so to get something up and running, and of that week, 4 days have been dedicated to figuring out why dojo grids tend to fail their connections only after charts [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=161&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If anyone is wondering where I&#8217;ve been the past few weeks, I&#8217;ve been dealing with the hot-mess called dojox.charting.  It&#8217;s taken me a week or so to get something up and running, and of that week, 4 days have been dedicated to figuring out why dojo grids tend to fail their connections only after charts have been shown, in a different ContentPane.  Wow, I had better things to do with my life:&gt;)  Eventually I gave up trying to use dojox.layout.ContentPane and just used regular IFRAME to house the chart component.  That seemed to, oddly enough, solve the grid failure problem.</p>
<p>I am going to try to get a working chart demo up on the site in the next few weeks.  The chart demos out there are ok for the most basic of charts (where you already have your well formed data, etc) but tend to oversimplify a bit.  My goal is to put something a bit more challenging up on the screen.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=161&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2009/12/17/dojo-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>Looking at Adobe Air</title>
		<link>http://phillipsb1.wordpress.com/2009/11/23/looking-at-adobe-air/</link>
		<comments>http://phillipsb1.wordpress.com/2009/11/23/looking-at-adobe-air/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 23:34:04 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=159</guid>
		<description><![CDATA[Some of my co-workers had recently recommended that I investigate Adobe Air as a web platform. All of the discussion points sounded good, and it promised to be a nice, corporately sponsored, and fairly disciplined way to put together web clients. I found an Adobe web site, downloaded the binaries, and got to work. About [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=159&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some of my co-workers had recently recommended that I investigate Adobe Air as a web platform.  All of the discussion points sounded good, and it promised to be a nice, corporately sponsored, and fairly disciplined way to put together web clients.  </p>
<p>I found an Adobe web site, downloaded the binaries, and got to work.  About an hour later, I still had NOTHING.  So it looks like there may be some learning curve after all.  There is a for-pay IDE out there to work with this AIR technology, but I have enough darn IDEs on my machine, and really don&#8217;t desire any more.  For now I&#8217;ve put that little hobby aside.  As I learn more, I will share it with my blog.  Whether or not I actually use this thing, I still need to understand it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=159&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2009/11/23/looking-at-adobe-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>ValidationTextBox in the grid</title>
		<link>http://phillipsb1.wordpress.com/2009/11/13/validationtextbox-in-the-grid/</link>
		<comments>http://phillipsb1.wordpress.com/2009/11/13/validationtextbox-in-the-grid/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:23:00 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[dojo 1.1]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=156</guid>
		<description><![CDATA[Back to old grids again&#8230; I have recently had to use some validation rules in my dojo grid. It took a while to figure out exactly how this is done if one does not use the grid editors, but instead uses the dijit controls. The layout view object contains all of the references needed to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=156&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back to old grids again&#8230;  I have recently had to use some validation rules in my dojo grid.  It took a while to figure out exactly how this is done if one does not use the grid editors, but instead uses the dijit controls.  The layout view object contains all of the references needed to put a custom control into your grid.<br />
<code><br />
weatherlayout=[{cells:[[<br />
{name: 'Time', field: "time",<br />
editor:dojox.grid.editors.Dijit,<br />
editorClass:'dijit.form.ValidationTextBox',<br />
editorProps:{regExp:'\\d{4}',invalidMessage:'This number should always be four digits, between 0000 and 2359'}<br />
},<br />
{name: 'Cloud Cover', field: "cloudcover",<br />
editor: dojox.grid.editors.select,<br />
options: ["Clear","Partly Cloudy","Overcast"]<br />
},<br />
{name: 'Wind Direction', field: "winddirection",<br />
editor:dojox.grid.editors.Dijit,<br />
editorClass:'dijit.form.NumberTextBox',<br />
constraint:{min:0,max:359},<br />
editorProps:{required:true}<br />
},<br />
{name: 'Wind Speed', field: "windspeed",<br />
editor:dojox.grid.editors.Dijit,<br />
editorClass:'dijit.form.NumberTextBox',<br />
constraint:{min:0,max:60},<br />
editorProps:{required:true}<br />
},<br />
{name: 'Temp C', field: "temperaturec",<br />
editor:dojox.grid.editors.Dijit,<br />
editorClass:'dijit.form.NumberTextBox',<br />
constraint:{min:0,max:50},<br />
editorProps:{required:true}<br />
},<br />
{name: 'RH%', field: "relativehumidity",<br />
editor:dojox.grid.editors.Dijit,<br />
editorClass:'dijit.form.NumberTextBox',<br />
constraint:{min:0,max:100},<br />
editorProps:{required:true}<br />
}<br />
]]}];</code></p>
<p>This layout is used in the dojo grid control to define how the grid is displayed.  The first column, time, needs a special validation rule.  I want to make sure that only 4 dijit numbers are accepted into the control.  In order to do this, I first define the fact that I want to use a dijit editor, then I provide a string that identifies the exact dijit class that I want to use.  Here is the tricky part&#8230;  If I want this dijit control to have any custom behavior or initialization settings, I need to specify those using the editorProps object.  This editorProps object is used as a mixin later on.  Appearantly what happens is that when the grid needs an editor, a new item of the editorClass type is created, and the editorProps are &#8220;mixed-in&#8221; to form the new object.  The approach is pretty slick, but can be a little non-sensical to Object Oriented purists.   </p>
<p>One might ask, &#8220;What is the difference between editorProps and constraint objects?&#8221;  The only real difference is that constraint objects get mixed into the normal set of grid editors, and the editorProps get mixed into Dijit controls.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=156&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2009/11/13/validationtextbox-in-the-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
		<item>
		<title>New Sample Project for Grids, Trees, Layout, and Containers.</title>
		<link>http://phillipsb1.wordpress.com/2009/11/04/new-sample-project-for-grids-trees-layout-and-containers/</link>
		<comments>http://phillipsb1.wordpress.com/2009/11/04/new-sample-project-for-grids-trees-layout-and-containers/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 22:11:45 +0000</pubDate>
		<dc:creator>phillipsb1</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phillipsb1.wordpress.com/?p=152</guid>
		<description><![CDATA[As promised, I have built a new project that contains everything you will need to jump start a Dojo 1.3.2 project.  It contains a border layout main page with three panels.  One of the panels contains some links that allows the viewer to choose whether to see the grid example, or a new tree example.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=152&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As promised, I have built a new project that contains everything you will need to jump start a Dojo 1.3.2 project.  It contains a border layout main page with three panels.  One of the panels contains some links that allows the viewer to choose whether to see the grid example, or a new tree example.  I use a bit of javascript to make the view change within the body of the original page.</p>
<p>This is a pretty bare bones example, but contains enough to build up a pretty nice first try at Dojo, without all of the learning curve needed to start out.  I reference the aol libraries to keep the size small.  It is built as a simple Eclipse project, so it should be very quick to get running.  Just import it into your workspace and off you go!</p>
<p><a href="http://go2.wordpress.com/?id=725X1342&amp;site=phillipsb1.wordpress.com&amp;url=http%3A%2F%2Fhome.comcast.net%2F~phillipsb%2Fcodeexamples%2FDojoGridExample_v2.zip">Click Here to download the new example code.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phillipsb1.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phillipsb1.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phillipsb1.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phillipsb1.wordpress.com&amp;blog=5907227&amp;post=152&amp;subd=phillipsb1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phillipsb1.wordpress.com/2009/11/04/new-sample-project-for-grids-trees-layout-and-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a8e2b0de94687b96d4c258c185e351cf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phillipsb1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
