<?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: Excellent jQuery Validation Plugin</title>
	<atom:link href="http://thepursuitofalife.com/excellent-jquery-validation-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://thepursuitofalife.com/excellent-jquery-validation-plugin/</link>
	<description>Wouldn&#039;t you rather be writing code?</description>
	<lastBuildDate>Thu, 11 Mar 2010 14:41:58 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: René</title>
		<link>http://thepursuitofalife.com/excellent-jquery-validation-plugin/comment-page-1/#comment-654</link>
		<dc:creator>René</dc:creator>
		<pubDate>Wed, 18 Jun 2008 10:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://xidey.wordpress.com/?p=633#comment-654</guid>
		<description>http://www.mail-archive.com/jquery-en@googlegroups.com/msg07820.html suggests to use submitHandler:. I tried that as well and failed, but the link explains how to do it right, by calling the form method. I followed the example and now validation and ajax submit both work. I use it in an intranet application, so I cannot give you working example, but I can give you the code snippet:


  $(document).ready(function(){
    $(&quot;#collect&quot;).validate({
      submitHandler: function(form) {
        $(form).ajaxSubmit({
          target: &#039;.message&#039;,
          success: function() {
            $(&#039;.edit&#039;).slideUp();
            $(&#039;.view&#039;).slideDown();
            $(&#039;.message&#039;).fadeIn(&#039;slow&#039;);
          }
        });
      },
      rules: {
        description: {
          required: true,
          minlength: &#039;3&#039;
        },
        &#039;countries[]&#039;: &#039;required&#039;
      },
      messages: {
        description: {
          required: &quot;Description is required&quot;,
          minLength: &quot;Should be at least 3 characters&quot;
        },
        &#039;countries[]&#039;: &#039;A Region should have at least one country selected&#039;
      }
    });
  });</description>
		<content:encoded><![CDATA[<p><a href="http://www.mail-archive.com/jquery-en@googlegroups.com/msg07820.html" rel="nofollow">http://www.mail-archive.com/jquery-en@googlegroups.com/msg07820.html</a> suggests to use submitHandler:. I tried that as well and failed, but the link explains how to do it right, by calling the form method. I followed the example and now validation and ajax submit both work. I use it in an intranet application, so I cannot give you working example, but I can give you the code snippet:</p>
<p>  $(document).ready(function(){<br />
    $(&#8221;#collect&#8221;).validate({<br />
      submitHandler: function(form) {<br />
        $(form).ajaxSubmit({<br />
          target: &#8216;.message&#8217;,<br />
          success: function() {<br />
            $(&#8217;.edit&#8217;).slideUp();<br />
            $(&#8217;.view&#8217;).slideDown();<br />
            $(&#8217;.message&#8217;).fadeIn(&#8217;slow&#8217;);<br />
          }<br />
        });<br />
      },<br />
      rules: {<br />
        description: {<br />
          required: true,<br />
          minlength: &#8216;3&#8242;<br />
        },<br />
        &#8216;countries[]&#8216;: &#8216;required&#8217;<br />
      },<br />
      messages: {<br />
        description: {<br />
          required: &#8220;Description is required&#8221;,<br />
          minLength: &#8220;Should be at least 3 characters&#8221;<br />
        },<br />
        &#8216;countries[]&#8216;: &#8216;A Region should have at least one country selected&#8217;<br />
      }<br />
    });<br />
  });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René</title>
		<link>http://thepursuitofalife.com/excellent-jquery-validation-plugin/comment-page-1/#comment-653</link>
		<dc:creator>René</dc:creator>
		<pubDate>Wed, 18 Jun 2008 10:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://xidey.wordpress.com/?p=633#comment-653</guid>
		<description>See what happens when you submit the register form twice. You&#039;ll see that it does a ajax submit the second time, but without validating!

I encourage you to keep looking for a solution, like I will be doing. I&#039;ll report here when I found it.</description>
		<content:encoded><![CDATA[<p>See what happens when you submit the register form twice. You&#8217;ll see that it does a ajax submit the second time, but without validating!</p>
<p>I encourage you to keep looking for a solution, like I will be doing. I&#8217;ll report here when I found it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Stevens</title>
		<link>http://thepursuitofalife.com/excellent-jquery-validation-plugin/comment-page-1/#comment-652</link>
		<dc:creator>Anthony Stevens</dc:creator>
		<pubDate>Tue, 17 Jun 2008 04:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://xidey.wordpress.com/?p=633#comment-652</guid>
		<description>@laureano: check out my current registration page at http://crowdify.com/register/ and check out the JS there.  The validation stuff works well.f</description>
		<content:encoded><![CDATA[<p>@laureano: check out my current registration page at <a href="http://crowdify.com/register/" rel="nofollow">http://crowdify.com/register/</a> and check out the JS there.  The validation stuff works well.f</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laureano arcanio</title>
		<link>http://thepursuitofalife.com/excellent-jquery-validation-plugin/comment-page-1/#comment-651</link>
		<dc:creator>laureano arcanio</dc:creator>
		<pubDate>Tue, 17 Jun 2008 03:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://xidey.wordpress.com/?p=633#comment-651</guid>
		<description>Hi, i read your post and it just what i&#039;m traying to acomplish. But i still cant make the Validation works with the AjaxForm plugin.
Could you provide a full example ?
Thanks in advice !</description>
		<content:encoded><![CDATA[<p>Hi, i read your post and it just what i&#8217;m traying to acomplish. But i still cant make the Validation works with the AjaxForm plugin.<br />
Could you provide a full example ?<br />
Thanks in advice !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
