<?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/"
	>

<channel>
	<title>Integrate This &#187; ajax</title>
	<atom:link href="http://www.coactus.com/blog/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coactus.com/blog</link>
	<description>Topics in Web based integration</description>
	<lastBuildDate>Sun, 26 Aug 2007 15:09:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Mobile Ajax Workshop position paper</title>
		<link>http://www.coactus.com/blog/2007/08/mobile-ajax-workshop-position-paper/</link>
		<comments>http://www.coactus.com/blog/2007/08/mobile-ajax-workshop-position-paper/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 15:09:01 +0000</pubDate>
		<dc:creator>Mark Baker</dc:creator>
				<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://www.coactus.com/blog/2007/08/mobile-ajax-workshop-position-paper/</guid>
		<description><![CDATA[This is the position paper we recently submitted to the W3C/OpenAjax Workshop on Mobile Ajax.


  The best mobile Ajax application &#8230;


  is the one that&#8217;s never written



  A position paper for the
  W3C/OpenAjax
  Workshop on Mobile Ajax
  by Mark Baker of
  Coactus
  Consulting


  Hypertext inventor Ted [...]]]></description>
			<content:encoded><![CDATA[<p>This is the position paper we recently submitted to the <a href="http://www.w3.org/2007/06/mobile-ajax/" rel="nofollow" >W3C/OpenAjax Workshop on Mobile Ajax</a>.</p>

<h4 style="TEXT-ALIGN:center">
  The best mobile Ajax application &#8230;
</h4>
<h4 style ="TEXT-ALIGN:center">
  is the one that&#8217;s never written<br />
</h4>
<br />
<div style="TEXT-ALIGN:center">
  A position paper for the
  <a href="http://www.w3.org/2007/06/mobile-ajax/" title="W3C/OpenAjax Workshop on Mobile Ajax">W3C/OpenAjax
  Workshop on Mobile Ajax</a><br />
  by Mark Baker of
  <a href="http://www.coactus.com" title="Coactus Consulting">Coactus
  Consulting</a><br />
</div>
<p>
  Hypertext inventor Ted Nelson talked about &#8220;the two Gods of literature&#8221;[1],
  publisher and reader, and the battle between them in determining what the
  reader ultimately consumes.&nbsp; Traditional Web programming with HTML and
  CSS (no script) provides effectively equal power to each God, permitting the
  publisher to provide the content together with declarations about how that
  content&nbsp;could be presented, but enabling the reader&nbsp;to instruct its
  agent to&nbsp;ignore and/or extend those declarations as it sees fit.&nbsp;
  Scripting, on the other hand,&nbsp;puts all the power in the hands of the
  publisher,&nbsp;providing the reader two options; either execute it to be able
  to consume the content it contains, or don&#8217;t and don&#8217;t.
</p>
<p>
  The &#8220;reader power&#8221; afforded by declarative programming is especially important
  for mobile use for at least&nbsp;two reasons.&nbsp; First, it&nbsp;allows the
  user agent to repurpose the content so it can be presented to the user&nbsp;in
  the context of the&nbsp;particular nuances of the input and output methods of
  the device.&nbsp; Second, it allows the user agent to&nbsp;be shipped
  with&nbsp;code which is optimized for the processing of&nbsp;the predefined
  markup language, where &#8220;optimized&#8221; can be along any dimension: speed, size,
  battery consumption, etc..
</p>
<p>
  Fortunately, there exists an approach which permits us to have the best of
  both worlds.&nbsp; If we factored out the commonly used script components, and
  extended HTML so that those components could be instantiated declaritively,
  then we could use declarative programming&nbsp;for these common components but
  continue to use script for the less common cases.&nbsp; As an example, &#8220;drag
  and drop&#8221; is a reasonably common feature implemented by scripts, but could
  easily be accomplished via a declarative approach [2].
</p>
<p>
  One&nbsp;downside of this hybrid approach is that standardization of the
  extensions &#8211; and deployment of software which uses them &#8211; can take a very long
  time.&nbsp; However it is not as big a problem as it first seems.&nbsp;
  Somewhat ironically, we can use script to help us incrementally deploy
  declarative content, by&nbsp;associating&nbsp;that content with&nbsp;script
  which interprets and processes the extension tags when browsers don&#8217;t support
  them (see [2] again for an example of this).
</p>
<p>
  Some Javascript toolkits already provide for a somewhat similar approach, at
  least regarding the binding of HTML extensions to script.&nbsp;
  Dojo&nbsp;includes &#8220;Dijits&#8221; (Dojo widgets) which permits, for
  example,&nbsp;HTML forms to be extended with attributes whose value explicitly
  references a Dojo-specific scripted TextBox widget.&nbsp; Once&nbsp;the Dojo
  libraries are linked in, the extended processing occurs.&nbsp; All Dijits seem
  to be missing is to acknowledge the value of standardizing their HTML
  extensions.
</p>
<p>
  HTML 5 (ne a bunch of WHAT WG specs) can also be seen in a new light when
  considering its role in&nbsp;this proposed approach.&nbsp; It defines
  (amoungst other things) a number of extensions that aim to do in a declarative
  manner what is currently done with script.&nbsp; For example, in-browser form
  validation.&nbsp; The&nbsp;approach outlined here also suggests that there
  would be value in developing a script which could process the HTML 5
  extensions for HTML 4 browsers.
</p>
<p>
  Note: see also the TAG&#8217;s view on declarative vs. imperative, in their Rule of
  Least Power finding[3].
</p>
<p>
  &nbsp;[1]&nbsp;Theodore Nelson.&nbsp; The Future of Information: Ideas,
  Connections and the Gods of Electronic Literature.&nbsp; ASCII Corp,
  1997.&nbsp; Unpublished.
</p>
<p>
  &nbsp;[2]
  <a href="http://www.markbaker.ca/blog/2006/07/21/declarative-drag-and-drop/" rel="nofollow" >http://www.markbaker.ca/blog/2006/07/21/declarative-drag-and-drop/</a>
</p>
<p>
  &nbsp;[3]
  <a href="http://www.w3.org/2001/tag/doc/leastPower.html" rel="nofollow" >http://www.w3.org/2001/tag/doc/leastPower.html</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.coactus.com/blog/2007/08/mobile-ajax-workshop-position-paper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
