<?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: jQuery Ajaxify</title>
	<atom:link href="http://www.dom111.co.uk/blog/coding/jquery-ajaxify/145/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog/coding/jquery-ajaxify/145</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Mon, 14 Nov 2011 09:49:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: dom111</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-ajaxify/145/comment-page-1#comment-187</link>
		<dc:creator>dom111</dc:creator>
		<pubDate>Wed, 19 Aug 2009 13:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=145#comment-187</guid>
		<description>D&#039;oh! Well spotted! Thanks very much for the comment, I&#039;ll update the script as soon as possible!</description>
		<content:encoded><![CDATA[<p>D&#8217;oh! Well spotted! Thanks very much for the comment, I&#8217;ll update the script as soon as possible!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-ajaxify/145/comment-page-1#comment-183</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Fri, 14 Aug 2009 18:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=145#comment-183</guid>
		<description>Your little ajaxify form script works great.. just one thing, it sends the value of a checkbox even when the checkbox is not checked.  I&#039;ve made the following change in the serializeform function to fix this:

serializeForm: function(node) {
    // initialize the string
    r = &#039;&#039;;

    // loop through all the elements (except submits)
    $(node).find(&#039;input[type!=submit][type!=button][type!=image], textarea, select&#039;).each(function(i, e) {
      // and appent the name and value to the string
      if( $(e).attr(&#039;type&#039;) == &#039;checkbox&#039; ) {
        if( $(e).attr(&#039;checked&#039;) ) {
          r += escape($(e).attr(&#039;name&#039;)) + &#039;=&#039; + escape($(e).val()) + &#039;&amp;&#039;;
        }
      }
      else {
        r += escape($(e).attr(&#039;name&#039;)) + &#039;=&#039; + escape($(e).val()) + &#039;&amp;&#039;;
      }
    });

    return r;
  },</description>
		<content:encoded><![CDATA[<p>Your little ajaxify form script works great.. just one thing, it sends the value of a checkbox even when the checkbox is not checked.  I&#8217;ve made the following change in the serializeform function to fix this:</p>
<p>serializeForm: function(node) {<br />
    // initialize the string<br />
    r = &#8221;;</p>
<p>    // loop through all the elements (except submits)<br />
    $(node).find(&#8216;input[type!=submit][type!=button][type!=image], textarea, select&#8217;).each(function(i, e) {<br />
      // and appent the name and value to the string<br />
      if( $(e).attr(&#8216;type&#8217;) == &#8216;checkbox&#8217; ) {<br />
        if( $(e).attr(&#8216;checked&#8217;) ) {<br />
          r += escape($(e).attr(&#8216;name&#8217;)) + &#8216;=&#8217; + escape($(e).val()) + &#8216;&amp;&#8217;;<br />
        }<br />
      }<br />
      else {<br />
        r += escape($(e).attr(&#8216;name&#8217;)) + &#8216;=&#8217; + escape($(e).val()) + &#8216;&amp;&#8217;;<br />
      }<br />
    });</p>
<p>    return r;<br />
  },</p>
]]></content:encoded>
	</item>
</channel>
</rss>

