<?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>Alastair&#039;s Axioms &#187; Ajax</title>
	<atom:link href="http://blog.alastairdawson.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com</link>
	<description>Flex, Ruby, etc. etc.</description>
	<lastBuildDate>Thu, 11 Feb 2010 19:28:16 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Interesting Links: YUIRails, Ebb faster than Mongrel and thin</title>
		<link>http://blog.alastairdawson.com/2008/03/05/interesting-links-yuirails-ebb-faster-than-mongrel-and-thin/</link>
		<comments>http://blog.alastairdawson.com/2008/03/05/interesting-links-yuirails-ebb-faster-than-mongrel-and-thin/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 15:23:42 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Merb]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.vixiom.com/2008/03/05/interesting-links-yuirails-ebb-faster-than-mongrel-and-thin/</guid>
		<description><![CDATA[The JavaScript library I use most after prototype is YUI so a big thanks to Chetan Patil for making it much easier to use in Rails.
Ruby Inside has a post on Ebb a small and fast web server for hosting Rails and Merb applications (and soon Django).
Ebb is a small, extremely high performance Web / [...]]]></description>
			<content:encoded><![CDATA[<p>The JavaScript library I use most after prototype is <a href="http://developer.yahoo.com/yui/">YUI</a> so a big thanks to <a href="http://justbarebones.blogspot.com/2008/01/announcing-yuirails.html">Chetan Patil</a> for making it much easier to use in Rails.</p>
<p>Ruby Inside <a href="http://www.rubyinside.com/ebb-web-framework-http-server-786.html">has a post</a> on <a href="http://ebb.rubyforge.org/">Ebb</a> a small and fast web server for hosting Rails and Merb applications (and soon Django).</p>
<blockquote><p>Ebb is a small, extremely high performance Web / HTTP server designed specifically for hosting applications built upon Web frameworks such as Rails and Merb (and, in future, apps on other non-Ruby frameworks.) The design is event based (similar to that used by Ruby daemons that use EventMachine) but Ebb itself is written in C and dispatches requests to Rack adapters. This is a real leapfrog over the popular Mongrel and Thin daemons which are primarily written in Ruby, and results in scary levels of performance.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2008/03/05/interesting-links-yuirails-ebb-faster-than-mongrel-and-thin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Compares Flex and Ajax</title>
		<link>http://blog.alastairdawson.com/2008/02/06/adobe-compares-flex-and-ajax/</link>
		<comments>http://blog.alastairdawson.com/2008/02/06/adobe-compares-flex-and-ajax/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 17:12:05 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Flash Remoting]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://blog.vixiom.com/2008/02/06/adobe-compares-flex-and-ajax/</guid>
		<description><![CDATA[The comparison is coming from one of the horses mouths so take it with a grain a salt. That said I think Adobe tried not to step on some Ajax toes and didn&#8217;t make a strong enough case for Flex.
It&#8217;s a good basic overview but there are a couple of things I disagree with;
Why use [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.adobe.com/newsletters/edge/february2008/articles/article4/index.html">The comparison</a> is coming from one of the horses mouths so take it with a grain a salt. That said I think Adobe tried not to step on some Ajax toes and didn&#8217;t make a strong enough case for Flex.</p>
<p>It&#8217;s a good basic overview but there are a couple of things I disagree with;</p>
<p>Why use ColdFusion for all the examples? A shrinking minority still use it but all the ColdFusion guys I know switched to either PHP or Rails over the last two years. I think it&#8217;s best to use PHP for comparisons like this as everyone has used it and can easily translate PHP to their favorite language.</p>
<p>Even though Adobe won&#8217;t admit it the reason they&#8217;re doing the comparison is to show off that Flex does Ajax like things. At the end of the article they break down the pros and cons of each, and if I were an Ajax developer I&#8217;m not sure I would be convinced to try Flex. Their pros for Flex are that it&#8217;s easier to develop with because of an IDE, which is true but there are <a href="http://www.aptana.com/">Ajax IDEs now</a> (which the author mentions later), the other is performance which ends up a tie because Ajax in a browser can handle large amounts of text better.</p>
<p>If I were writing it my pro Flex arguments would have included;</p>
<p><strong>Consistent results</strong> No matter your browser Flash is Flash so Flex is Flex. Except for extremely rare circumstances your app is going to behave as expected.</p>
<p><strong>Class Mapping</strong> Flash Remoting can map server side classes. Objects don&#8217;t need to be converted into XML first to go over the wire and they arrive as native objects ready to use (no need to parse and convert them back again).</p>
<p><strong>Not only Remoting</strong> If you do want to consume XML Flex can do that too, or JSON, or REST services etc. If you already have some kind of service set up Flex could slide in and replace Ajax so you could make use of it&#8217;s&#8230;</p>
<p><strong>Advanced Multimedia Features</strong> Video, Audio, and Vector Animation are things you just cant do with JavaScript, it&#8217;s the way content on the Intertubes are moving and a big reason to use Flex.</p>
<p>My pro Ajax arguments would include;</p>
<p><strong>Frameworks</strong> The sheer number of Ajax frameworks dwarfs anything Flex has right now.</p>
<p><strong>User Base</strong> The Flex community is growing but the JavaScript community is huge, you&#8217;re much more likely to find help getting started or solving a problem with Ajax.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2008/02/06/adobe-compares-flex-and-ajax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails 2.0 and link_to_remote :with</title>
		<link>http://blog.alastairdawson.com/2008/01/18/rails-20-and-link_to_remote-with/</link>
		<comments>http://blog.alastairdawson.com/2008/01/18/rails-20-and-link_to_remote-with/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 18:22:18 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.vixiom.com/2008/01/18/rails-20-and-link_to_remote-with/</guid>
		<description><![CDATA[I&#8217;m moving an old app to Rails 2.0 and other than fixing some routes Ajax calls with link_to_remote and the :with parameter was the only thing that gave me some trouble. In the old version I was grabbing the current value of a drop down list with Prototype and passing it along using :with like [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m moving an old app to Rails 2.0 and other than fixing some routes Ajax calls with link_to_remote and the :with parameter was the only thing that gave me some trouble. In the old version I was grabbing the current value of a drop down list with Prototype and passing it along using :with like this</p>
<pre class="textmate-source"><span class="text text_html text_html_ruby"><span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> link_to_remote image_tag<span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">(</span><span class="string string_quoted string_quoted_single string_quoted_single_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">'</span>cms/add_16.gif<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">'</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>id</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>color_add<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">)</span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>url</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="punctuation punctuation_section punctuation_section_scope punctuation_section_scope_ruby">{</span><span class="meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block"> </span><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>controller</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>colors<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>action</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>new_ajax<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>id</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_ruby">@</span>product</span><span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>id <span class="punctuation punctuation_section punctuation_section_scope punctuation_section_scope_ruby">}</span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>with</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>{ color_id: $F('color_id') }<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span>
<span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span></span></pre>
<p>But in Rails 2.0 the parameter wouldn&#8217;t go along for the ride, it seemed that the new authenticity_token that gets sent with Ajax calls was messing things up. Here&#8217;s the fix</p>
<pre class="textmate-source"><span class="text text_html text_html_ruby"><span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> link_to_remote image_tag<span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">(</span><span class="string string_quoted string_quoted_single string_quoted_single_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">'</span>cms/add_16.gif<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">'</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>id</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>color_add<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">)</span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>url</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="punctuation punctuation_section punctuation_section_scope punctuation_section_scope_ruby">{</span><span class="meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block"> </span><span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>controller</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>colors<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>action</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>new_ajax<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>id</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_ruby">@</span>product</span><span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>id <span class="punctuation punctuation_section punctuation_section_scope punctuation_section_scope_ruby">}</span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span>
      <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>with</span> <span class="punctuation punctuation_separator punctuation_separator_key-value">=&gt;</span> <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>'color_id='+$F('color_id')<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span>
<span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span></span></pre>
<p>I freely admit JavaScript/Ajax is my weakest language so if I was doing it wrong the entire time let me know <img src='http://blog.alastairdawson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2008/01/18/rails-20-and-link_to_remote-with/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
