<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Smart, unobtrusive AJAX form submission with jQuery</title>
	<atom:link href="http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/</link>
	<description>Maniacal musings of a pixel perfectionist</description>
	<lastBuildDate>Mon, 05 Jul 2010 15:35:47 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TheUiGuy</title>
		<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/comment-page-1/#comment-11</link>
		<dc:creator>TheUiGuy</dc:creator>
		<pubDate>Wed, 24 Sep 2008 03:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://mlntn.com/?p=19#comment-11</guid>
		<description>Here is one of the great things that jQuery does that mooTools doesn&#039;t do so well.

If you are getting back, say html as the result of an ajax call, what does it take to parse that html and do something with the results?

In jQuery, its about as easy as you showed. jQuery naturally lends itself to this kind of thought. Although mooTools I find to be a more highly structured and even easier to use in some respects, this one area is where jQuery shines. And if you have to ask I am totally 50/50 on which framework I like better. I use both.</description>
		<content:encoded><![CDATA[<p>Here is one of the great things that jQuery does that mooTools doesn&#8217;t do so well.</p>
<p>If you are getting back, say html as the result of an ajax call, what does it take to parse that html and do something with the results?</p>
<p>In jQuery, its about as easy as you showed. jQuery naturally lends itself to this kind of thought. Although mooTools I find to be a more highly structured and even easier to use in some respects, this one area is where jQuery shines. And if you have to ask I am totally 50/50 on which framework I like better. I use both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Mellentine</title>
		<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/comment-page-1/#comment-8</link>
		<dc:creator>Jared Mellentine</dc:creator>
		<pubDate>Tue, 23 Sep 2008 13:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://mlntn.com/?p=19#comment-8</guid>
		<description>Dave: I agree and have shortened it up a bit, although too much of that can decrease readability.  FWIW, the jQuery Form plugin seems like overkill for what I wanted to do.</description>
		<content:encoded><![CDATA[<p>Dave: I agree and have shortened it up a bit, although too much of that can decrease readability.  FWIW, the jQuery Form plugin seems like overkill for what I wanted to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Mellentine</title>
		<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/comment-page-1/#comment-7</link>
		<dc:creator>Jared Mellentine</dc:creator>
		<pubDate>Tue, 23 Sep 2008 13:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://mlntn.com/?p=19#comment-7</guid>
		<description>Good point, Samori. I replaced it above and in the download.</description>
		<content:encoded><![CDATA[<p>Good point, Samori. I replaced it above and in the download.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/comment-page-1/#comment-9</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 23 Sep 2008 13:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://mlntn.com/?p=19#comment-9</guid>
		<description>Don&#039;t forget the form plugin!
http://malsup.com/jquery/form/

Your submit event handler can be shortened significantly by eliminating all the excess variables:

var $form = $(this);
$.ajax($.extend({
  type : $form.attr(&#039;method&#039;) &#124;&#124; &#039;get&#039;,
  url  : $form.attr(&#039;action&#039;) &#124;&#124; window.location,
  data : $form.serialize()
}, options));
return false;</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget the form plugin!<br />
<a href="http://malsup.com/jquery/form/" rel="nofollow">http://malsup.com/jquery/form/</a></p>
<p>Your submit event handler can be shortened significantly by eliminating all the excess variables:</p>
<p>var $form = $(this);<br />
$.ajax($.extend({<br />
  type : $form.attr(&#8216;method&#8217;) || &#8216;get&#8217;,<br />
  url  : $form.attr(&#8216;action&#8217;) || window.location,<br />
  data : $form.serialize()<br />
}, options));<br />
return false;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samori Gorse</title>
		<link>http://mlntn.com/2008/09/22/javascript-smart-unobtrusive-ajax-form-submission-with-jquery/comment-page-1/#comment-10</link>
		<dc:creator>Samori Gorse</dc:creator>
		<pubDate>Tue, 23 Sep 2008 08:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://mlntn.com/?p=19#comment-10</guid>
		<description>Please don&#039;t use window.location when you meant window.location.href, this is not part of any standard and who knows, maybe tomorrow window.location.toString will return window.host...

I know that sounds stupid but it&#039;s always good to avoid programming by accident.

The plugin is nicely written tough, really smart.</description>
		<content:encoded><![CDATA[<p>Please don&#8217;t use window.location when you meant window.location.href, this is not part of any standard and who knows, maybe tomorrow window.location.toString will return window.host&#8230;</p>
<p>I know that sounds stupid but it&#8217;s always good to avoid programming by accident.</p>
<p>The plugin is nicely written tough, really smart.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
