<?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>Somsuay's Weblog &#187; ui interface</title>
	<atom:link href="http://somsuay.wordpress.com/category/ui-interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://somsuay.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jul 2007 14:20:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='somsuay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3e47a17b734d03f4644eae8100a48ea4?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Somsuay's Weblog &#187; ui interface</title>
		<link>http://somsuay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://somsuay.wordpress.com/osd.xml" title="Somsuay&#8217;s Weblog" />
		<item>
		<title>Code Finished for Dojo Offline’s Default User Interface</title>
		<link>http://somsuay.wordpress.com/2007/07/30/code-finished-for-dojo-offline%e2%80%99s-default-user-interface/</link>
		<comments>http://somsuay.wordpress.com/2007/07/30/code-finished-for-dojo-offline%e2%80%99s-default-user-interface/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 08:19:14 +0000</pubDate>
		<dc:creator>somsuay</dc:creator>
				<category><![CDATA[ui interface]]></category>

		<guid isPermaLink="false">http://somsuay.wordpress.com/2007/07/30/code-finished-for-dojo-offline%e2%80%99s-default-user-interface/</guid>
		<description><![CDATA[We have posted up the default user-interface widget for Dojo Offline; this is all coded up now in JavaScript and is complete. This means all the default user-interface code, which lives in dojo.dot.ui, is done. The UI is ‘driven’ by the rest of the Dojo Offline framework, which includes dojo.dot and dojo.sync. Note that there [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somsuay.wordpress.com&blog=1438309&post=4&subd=somsuay&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We have posted up the <a href="http://www.sitepen.com/blog/2007/01/09/28/">default user-interface widget</a> for Dojo Offline; this is all coded up now in JavaScript and is complete. This means all the default user-interface code, which lives in <code>dojo.dot.ui</code>, is done. The UI is ‘driven’ by the rest of the Dojo Offline framework, which includes <code>dojo.dot</code> and <code>dojo.sync</code>. Note that there is no real code inside of <code>dojo.dot</code> and <code>dojo.sync</code>; these are just stubs for now and return suitable ‘fake’ data to drive the UI. The next step is to actually code the inside of <code>dojo.dot</code> and <code>dojo.sync</code>, which actually persist data and do syncing.</p>
<p>I have updated Moxie, a demo offline web based word processor, to use the new Dojo Offline UI. <a href="http://codinginparadise.org/projects/dojo_offline/release-01-30-2007/demos/storage/editor.html">Check it out</a>. I have confirmed that the UI widget works in Safari, Internet Explorer, and Firefox, cross-platform. Play around with the widget and tell me if you find any glitches. Please note that the Dojo Offline Widget’s UI doesn’t currently actually do any persisting or synchronizing; it is ‘dumb’ and is just driven by the rest of Dojo Offline (<code>dojo.dot</code> and <code>dojo.sync</code>, which isn’t currently implemented.</p>
<p>From a coding perspective, bringing the Dojo Offline default UI into Moxie was very easy. First, inside my editor.html file, all I have to do is place a DIV with the ID ‘dot-widget’ in my HTML:</p>
<p><code> <!-- Place the Dojo Offline widget here --></code></p>
<p>Dojo Offline automatically fills this out with the default Offline Widget.I also have to bring in the Dojo Offline Widget’s CSS stylesheet:</p>
<p><code>&lt;link rel="stylesheet" /&gt;<br />
type="text/css"<br />
xhref="../../src/dot/ui-template/widget.css" &gt;At the top of my Moxie JavaScript code, I simply add the following as well:</code></p>
<p>&lt;code&gt; // configure how we should work offline</p>
<p>// set our application name<br />
dojo.dot.ui.appName = “Moxie”;</p>
<p>// we aren’t going to need a real offline cache for now;<br />
// we will just have our server return good HTTP/1.1<br />
// caching headers and rely on the browser’s native cache<br />
dojo.dot.requireOfflineCache = false;<br />
This defines my app’s name, which is dynamically inserted into the default Dojo Offline UI (including the Learn More page you get if you click the ‘learn more’ link). I also indicate that I won’t be using a real offline cache for now. <a href="http://www.codinginparadise.org/xhtml_transformer/?url=http://www.codinginparadise.org/clients/sitepen/dojo_offline/apiwork/api_blog_post.html#4">See details on what this means here.</a></p>
<p><a href="view-source:http://codinginparadise.org/projects/dojo_offline/release-01-30-2007/demos/storage/editor.html">View Moxie’s editor.html file</a><br />
<a href="view-source:http://codinginparadise.org/projects/dojo_offline/release-01-30-2007/demos/storage/editor.js">View Moxie’s editor.js file</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/somsuay.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/somsuay.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/somsuay.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/somsuay.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/somsuay.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/somsuay.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/somsuay.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/somsuay.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/somsuay.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/somsuay.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/somsuay.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/somsuay.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=somsuay.wordpress.com&blog=1438309&post=4&subd=somsuay&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://somsuay.wordpress.com/2007/07/30/code-finished-for-dojo-offline%e2%80%99s-default-user-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0058ba068f0e98bf70696ce8c7bac95?s=96&#38;d=identicon" medium="image">
			<media:title type="html">somsuay</media:title>
		</media:content>
	</item>
	</channel>
</rss>