<?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>Chris Norton &#187; ajax</title>
	<atom:link href="http://www.chnorton.com.au/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chnorton.com.au</link>
	<description>A blog about software engineering, web development, education and my otaku interests.</description>
	<lastBuildDate>Tue, 07 Dec 2010 11:45:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>First impressions of ExtJS</title>
		<link>http://www.chnorton.com.au/2007/12/20/first-impressions-of-extjs/</link>
		<comments>http://www.chnorton.com.au/2007/12/20/first-impressions-of-extjs/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 08:41:34 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/12/20/first-impressions-of-extjs/</guid>
		<description><![CDATA[I&#8217;ve recently been developing a web-based application (a RIA one might say) and, after initially trying to get it working right in jQuery, I decided to have a go at using ExtJS, a JavaScript library I&#8217;ve been meaning to try for a while. Basically, it is a JavaScript library that includes a ton of things [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been developing a web-based application (a <abbr title="rich internet application">RIA</abbr> one might say) and, after initially trying to get it working right in <a href="http://jquery.com/" rel="external nofollow">jQuery</a>, I decided to have a go at using <a href="http://extjs.com/">ExtJS</a>, a JavaScript library I&#8217;ve been meaning to try for a while. Basically, it is a JavaScript library that includes a ton of things for building web application other libraries don&#8217;t &#8211; not surprising considering it started life as an add-on to <a href="http://developer.yahoo.com/yui/" rel="external nofollow">YUI</a>. Here is my initial impressions of it, most of which are direct comparisons to jQuery.</p>
<p><span id="more-197"></span>First of all, getting Ext running is slightly more complicated than getting jQuery running. jQuery is a simple matter of including jquery.js in your HTML and then writing your script. Ext requires first it&#8217;s own <abbr title="cascading style sheets">CSS</abbr> file, then an adapter which uses another library (jQuery, YUI or Prototype) but can also use the newish ext-base.js which doesn&#8217;t depend on external libraries, and finally you include ext.js itself. I went with the pure Ext solution but tried out the jQuery adapter and found it didn&#8217;t work for me &#8211; I&#8217;m sure I was doing something wrong but didn&#8217;t care enough to fix it and went back to Ext.</p>
<p>Secondly, Ext is rather huge. Not surprising considering what it can do but the whole thing (ext.js, ext-base.js and stylesheet) still comes in uncompressed at just over 512KB. Sorry, I should mention that that&#8217;s <em>with</em> Ext&#8217;s default minification &#8211; the debug versions are a bit over 1MB! In comparison, jQuery is roughly 70KB before any minification is applied. So what do you get for all this size? Quite a bit actually.</p>
<p>The customer info area of my application is designed with a list of customers on the left and an area for details on the right. With pure HTML and CSS a nice-looking layout here, similar to a desktop app, is really difficult to achieve. With Ext it&#8217;s almost trivial and you can use a logical declarative style of recursive JavaScript objects to define the layout &#8211; similar to how it would be done in Java Swing, for example. With Ext you can also easily get &#8220;bonus&#8221; features like resizable panes, content areas that adjust to the size of the viewport and a default style that looks pretty damned good (and you have to option of using different themes). Without any trouble I was able to get a simple list working which allows clicking on customer names to load their details asynchronously in the details panel, as well as allowing dynamic updates and the like. </p>
<p>The standard things that I use with jQuery &#8211; selectors and <abbr title="Asynchronous Javascript And XML">AJAX</abbr> support &#8211; are also well supported in Ext, even if they are slightly more verbose. Ext also includes a nifty feature in it&#8217;s simplistic load() method that allows you to set a loading message, something that I believe you have ot do manually in jQuery.</p>
<p>Ext also supports a wide range of widgets and the like out of the box. Data grids are all the rage now and Ext makes it simple to get them up and running. Tree views, buttons, colour pickers, date selectors and a bunch of others are provided as well. If there&#8217;s something missing you might be able to find a plugin for it.</p>
<p>Overall, I&#8217;m really enjoying working with Ext. It makes some fundamental yet complex things ridiculously easy and provides enough of a framework to get almost anything working with a bit of lateral thinking and liberal application of nested layouts and the like.</p>
<p>So I guess the obvious question now is if I prefer Ext or jQuery? Honestly, the two are just aimed at completely different areas. If you&#8217;re making a web site that needs some fancy JavaScript effects, a bit of AJAX and you want it to be light and accessible, then I&#8217;d say jQuery is the way to go. If you want a RIA with lots of advanced functionality and don&#8217;t care about those plebs who don&#8217;t have JavaScript then I&#8217;d say Ext is definitely the preferred option. If I had to pick I&#8217;d say I like jQuery a bit more since I prefer writing enhanced web sites rather than desktop application wannabes but this is really just a personal choice. Both libraries offer the same basic functionality and jQuery can certainly be extended to do pretty much what Ext does so choosing either will probably let you do what you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/12/20/first-impressions-of-extjs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AjaxLife</title>
		<link>http://www.chnorton.com.au/2007/10/08/ajaxlife/</link>
		<comments>http://www.chnorton.com.au/2007/10/08/ajaxlife/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 13:40:58 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/10/08/ajaxlife/</guid>
		<description><![CDATA[If you play (live?) Second Life then you might be interested in Katharine Berry&#8217;s AjaxLife, an AJAX client for the game. You can also find the source on Google Code.]]></description>
			<content:encoded><![CDATA[<p>If you play (live?) <a href="http://secondlife.com/" rel="external nofollow">Second Life</a> then you might be interested in <a href="http://blog.katharineberry.co.uk/" rel="external">Katharine Berry&#8217;s</a> AjaxLife, an AJAX client for the game. You can also find <a href="http://code.google.com/p/ajaxlife/" rel="external nofollow">the source on Google Code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/10/08/ajaxlife/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deluge Web Interface</title>
		<link>http://www.chnorton.com.au/2007/09/30/deluge-web-interface/</link>
		<comments>http://www.chnorton.com.au/2007/09/30/deluge-web-interface/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 05:34:36 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[deluge]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[webui]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/09/30/deluge-web-interface/</guid>
		<description><![CDATA[In my last post on Deluge I commented that one of the things the BitTorrent client was lacking was a web interface. That situation has been rectified by a recent plugin that provides WebUI capabilities. After taking a look at what is offered I can say that it looks very promising but isn&#8217;t quite at [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.chnorton.com.au/2007/09/11/deluge-055/">my last post on Deluge</a> I commented that one of the things the BitTorrent client was lacking was a web interface. That situation has been rectified by a <a href="http://deluge-torrent.org/2007/09/26/deluge-web-interface/" rel="external">recent plugin that provides WebUI capabilities</a>. After taking a look at what is offered I can say that it looks very promising but isn&#8217;t quite at a stage where you&#8217;d want to use it for anything but the most basic administration of your torrents.</p>
<p><span id="more-143"></span>So far, the supported features are: authentication with username/password, viewing of the queue, uploading new torrents (from a local file or a URL), auto-refresh and pausing/resuming downloading. This enough for basic administration but one rather essential feature that is missing is the ability to change the queue position of torrents, such as to move something up or down. There are also no settings available so it relies on you having the system set up beforehand and not wanting to change anything. </p>
<p>Another key problem with running WebUI on Deluge is that the program itself requires a full desktop to be running as it requires GTK+. This means that you can&#8217;t run it on a server that has been set up to run a minimal set of software daemons from the shell. There&#8217;s no real reason why a torrent program needs a graphical interface so maybe a &#8220;headless&#8221; mode will be enabled on Deluge in future versions.</p>
<p>One interesting design decision made is that images and stylesheets are in a different directory to the templates. From the sounds of the directory they&#8217;re in (<span class="filename">static</span>) the intention is to have the unchanging components served from a different directory which could theoretically be on a completely different server. This is good practice for high traffic sites and is a common way of optimising a web site but I have to wonder why it was employed here. I assume that a personal interface to your BitTorrent client would <em>not</em> qualify as a high traffic site and the templating system is extraordinarily handicapped by having stylesheets and images in a different directory that is not related to the template in any way.</p>
<p>I would like to take a look at the plugin further and see if some improvements can be made, such as allowing full AJAX operations. I think using AJAX refreshes would be particularly beneficial as full page refreshes are terribly wasteful in terms of bandwidth and not very nice from a usability point of view. Other improvements should just be a matter of changing the template &#8211; for example, making the layout fluid rather than fixed width.</p>
<p>The WebUI plugin for Deluge does look promising and could eventually replace Azureus as my BitTorrent client but there are some important problems that would need to be addressed first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/09/30/deluge-web-interface/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

