<?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 Plugin: imValidateForm</title>
	<atom:link href="http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/feed/" rel="self" type="application/rss+xml" />
	<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/</link>
	<description>Ajax and Ajax Frameworks</description>
	<lastBuildDate>Tue, 09 Mar 2010 02:33:23 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ti</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-200</link>
		<dc:creator>Ti</dc:creator>
		<pubDate>Tue, 14 Jul 2009 14:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-200</guid>
		<description>The document.ready function is in the &lt;head&gt; section enclosed in &lt;script type=&quot;text/javascript&quot;&gt; &lt;script&gt; tags.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
The document.ready function is in the &lt;head&gt; section enclosed in &lt;script type=&#8221;text/javascript&#8221;&gt; &lt;script&gt; tags.<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
<link rel="stylesheet" type="text/css" href="http://grasshopperpebbles.com/wp-content/plugins/tippy/dom_tooltip.css" media="screen" /><script type="text/javascript" src="http://grasshopperpebbles.com/wp-content/plugins/tippy/dom_tooltip.js"></script>]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-175</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 05 Jul 2009 02:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-175</guid>
		<description>Just got back into town. Did you place the document.ready function within ?</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
Just got back into town. Did you place the document.ready function within ?<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ti</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-173</link>
		<dc:creator>Ti</dc:creator>
		<pubDate>Tue, 30 Jun 2009 19:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-173</guid>
		<description>Apparently I can&#039;t figure out how to add actual HTML to this comment....

I&#039;m trying to use imValidateForm from within some PHP code. When I click Submit I see that it gets called, because the Submit button becomes unavailable, but I never get any error messages and if there are no errors in the form, the url never gets called. I&#039;m using jQuery 1.3.2. In my PHP I have:

  
    $(document).ready( function( ) {
      $(&#039;#submit&#039;).click( function( ) { 
        $(&#039;#frmRequest&#039;).imValidateForm( {
          responseDiv: &#039;response&#039;,
          validate_func: &#039;validateFields&#039;,
          validate_map: valMapReg1,
          url: &#039;request.php&#039;,
          data_type: &#039;json&#039;,
          submit_button: &#039;submit&#039;
        } );	
        return false;
      } ); 
    } );

And my validation map looks like:

var valMapReg1 = { &quot;fields&quot;: [
  {&quot;id&quot;: &quot;pi_name&quot;, &quot;label&quot;: &quot;Principal Investigator&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;hasValue&quot;, &quot;exclude&quot;: &quot;0&quot;}]},
  {&quot;id&quot;: &quot;title&quot;, &quot;label&quot;: &quot;Title&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;hasValue&quot;}]},
  {&quot;id&quot;: &quot;discipline&quot;, &quot;label&quot;: &quot;Scientific Discipline&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;hasValue&quot;}]},
  {&quot;id&quot;: &quot;area&quot;, &quot;label&quot;: &quot;Disciplinary Area&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;hasValue&quot;, &quot;exclude&quot;: &quot;0&quot;}]},
  {&quot;id&quot;: &quot;abstract&quot;, &quot;label&quot;: &quot;Abstract&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;hasValue&quot;}]},
  {&quot;id&quot;: &quot;tos&quot;, &quot;label&quot;: &quot;Terms of Service&quot;, &quot;rules&quot;: [{&quot;name&quot;: &quot;isChecked&quot;}]}
  ]}</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
Apparently I can&#8217;t figure out how to add actual HTML to this comment&#8230;.</p>
<p>I&#8217;m trying to use imValidateForm from within some PHP code. When I click Submit I see that it gets called, because the Submit button becomes unavailable, but I never get any error messages and if there are no errors in the form, the url never gets called. I&#8217;m using jQuery 1.3.2. In my PHP I have:</p>
<p>    $(document).ready( function( ) {<br />
      $(&#8217;#submit&#8217;).click( function( ) {<br />
        $(&#8217;#frmRequest&#8217;).imValidateForm( {<br />
          responseDiv: &#8216;response&#8217;,<br />
          validate_func: &#8216;validateFields&#8217;,<br />
          validate_map: valMapReg1,<br />
          url: &#8216;request.php&#8217;,<br />
          data_type: &#8216;json&#8217;,<br />
          submit_button: &#8217;submit&#8217;<br />
        } );<br />
        return false;<br />
      } );<br />
    } );</p>
<p>And my validation map looks like:</p>
<p>var valMapReg1 = { &#8220;fields&#8221;: [<br />
  {"id": "pi_name", "label": "Principal Investigator", "rules": [{"name": "hasValue", "exclude": "0"}]},<br />
  {&#8221;id&#8221;: &#8220;title&#8221;, &#8220;label&#8221;: &#8220;Title&#8221;, &#8220;rules&#8221;: [{"name": "hasValue"}]},<br />
  {&#8221;id&#8221;: &#8220;discipline&#8221;, &#8220;label&#8221;: &#8220;Scientific Discipline&#8221;, &#8220;rules&#8221;: [{"name": "hasValue"}]},<br />
  {&#8221;id&#8221;: &#8220;area&#8221;, &#8220;label&#8221;: &#8220;Disciplinary Area&#8221;, &#8220;rules&#8221;: [{"name": "hasValue", "exclude": "0"}]},<br />
  {&#8221;id&#8221;: &#8220;abstract&#8221;, &#8220;label&#8221;: &#8220;Abstract&#8221;, &#8220;rules&#8221;: [{"name": "hasValue"}]},<br />
  {&#8221;id&#8221;: &#8220;tos&#8221;, &#8220;label&#8221;: &#8220;Terms of Service&#8221;, &#8220;rules&#8221;: [{"name": "isChecked"}]}<br />
  ]}<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Crandall</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-146</link>
		<dc:creator>Steve Crandall</dc:creator>
		<pubDate>Thu, 11 Jun 2009 19:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-146</guid>
		<description>Wow, awesome! Thank you.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
Wow, awesome! Thank you.<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-144</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-144</guid>
		<description>I was able to duplicate your problem. I&#039;m surprised no one else caught it. I put a new version (1.2) on both JQuery&#039;s plugin site and Google Code (http://code.google.com/p/imvalidateform/). Thanks.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
I was able to duplicate your problem. I&#8217;m surprised no one else caught it. I put a new version (1.2) on both JQuery&#8217;s plugin site and Google Code (<a href="http://code.google.com/p/imvalidateform/)" rel="nofollow">http://code.google.com/p/imvalidateform/)</a>. Thanks.<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve C</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-142</link>
		<dc:creator>Steve C</dc:creator>
		<pubDate>Thu, 11 Jun 2009 01:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-142</guid>
		<description>Thanks for the plugin, hope you can help me with a problem I have.

If I hit the submit button while any &quot;watched&quot; field is empty, the plugin throws an error message to my reporting div section. 

However, if I attempt to submit the form again I receive this message in my reporting div section:
&quot;[object Object]&quot;

Any subsequent submission attempts fail and the page is neither submitted or refreshed.  

I should also mention that I am using code from &quot;SPAM Protection Using PHP and jQuery&quot;

http://plugins.jquery.com/project/SPAMProtection

Here is my jQuery code:

jQuery(&quot;.required&quot;).blur(function() {  
	
		jQuery.get(&quot;newregister.php&quot;, { //name of the PHP file containing the session code
				   confirm: &#039;&#039; 
			},
	
			function(data){
				// alert(&quot;Data Loaded: &quot; + data);
			});
	
		});

	jQuery(&quot;#btnSubmit&quot;).click(function() { 
				jQuery(&quot;#form1&quot;).imValidateForm({
					responseDiv:  &#039;response&#039;,
					validate_map: valMapReg1,
					url:&#039;newregister.php&#039;,
					data_type: &#039;text&#039;,
					submit_button: &#039;btnSubmit&#039;
				});	
				return false;
			}); 

The page is not posted yet, so I will provide more code if asked or needed.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
Thanks for the plugin, hope you can help me with a problem I have.</p>
<p>If I hit the submit button while any &#8220;watched&#8221; field is empty, the plugin throws an error message to my reporting div section. </p>
<p>However, if I attempt to submit the form again I receive this message in my reporting div section:<br />
&#8220;[object Object]&#8221;</p>
<p>Any subsequent submission attempts fail and the page is neither submitted or refreshed.  </p>
<p>I should also mention that I am using code from &#8220;SPAM Protection Using PHP and jQuery&#8221;</p>
<p><a href="http://plugins.jquery.com/project/SPAMProtection" rel="nofollow">http://plugins.jquery.com/project/SPAMProtection</a></p>
<p>Here is my jQuery code:</p>
<p>jQuery(&#8221;.required&#8221;).blur(function() {  </p>
<p>		jQuery.get(&#8221;newregister.php&#8221;, { //name of the PHP file containing the session code<br />
				   confirm: &#8221;<br />
			},</p>
<p>			function(data){<br />
				// alert(&#8221;Data Loaded: &#8221; + data);<br />
			});</p>
<p>		});</p>
<p>	jQuery(&#8221;#btnSubmit&#8221;).click(function() {<br />
				jQuery(&#8221;#form1&#8243;).imValidateForm({<br />
					responseDiv:  &#8216;response&#8217;,<br />
					validate_map: valMapReg1,<br />
					url:&#8217;newregister.php&#8217;,<br />
					data_type: &#8216;text&#8217;,<br />
					submit_button: &#8216;btnSubmit&#8217;<br />
				});<br />
				return false;<br />
			}); </p>
<p>The page is not posted yet, so I will provide more code if asked or needed.<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-125</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 14 May 2009 02:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-125</guid>
		<description>I created demos for all my JQuery Plugins - http://grasshopperpebbles.com/demos/
I will be adding my YUI and Dojo widgets here as well (as soon as I get the time).</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
I created demos for all my JQuery Plugins &#8211; <a href="http://grasshopperpebbles.com/demos/" rel="nofollow">http://grasshopperpebbles.com/demos/</a><br />
I will be adding my YUI and Dojo widgets here as well (as soon as I get the time).<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liviu</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-124</link>
		<dc:creator>Liviu</dc:creator>
		<pubDate>Wed, 13 May 2009 09:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-124</guid>
		<description>hi! this is a really useful plugin. Maybe I didn&#039;t see, but can you please post a php/asp example of the server side processing. For example, json resulting text must be [ {&quot;message&quot;, &quot;It&#039;s all good&quot;} ] ?</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
hi! this is a really useful plugin. Maybe I didn&#8217;t see, but can you please post a php/asp example of the server side processing. For example, json resulting text must be [ {"message", "It's all good"} ] ?<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-98</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 22 Apr 2009 15:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-98</guid>
		<description>No, eitherOr can not handle that type of situation. Sorry.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
No, eitherOr can not handle that type of situation. Sorry.<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://grasshopperpebbles.com/ajax/jquery-plugin-imvalidateform/#comment-94</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 21 Apr 2009 03:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=65#comment-94</guid>
		<description>Question:  I have a form that requires the user to fill in two of 4 separate text fields in order to successfully submit the form.  What I need to do is have it validate if either the first two or the second two fields are both filled in, and then display an error message if the user has not filled in either both of the first two or both of the second two.....is this possible using eitherOr?  Thanks for any help you might be able to offer me on this!</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<div id="mediatext">
<!-- google_ad_section_start --><br />
<!--Amazon_CLS_IM_START--><br />
Question:  I have a form that requires the user to fill in two of 4 separate text fields in order to successfully submit the form.  What I need to do is have it validate if either the first two or the second two fields are both filled in, and then display an error message if the user has not filled in either both of the first two or both of the second two&#8230;..is this possible using eitherOr?  Thanks for any help you might be able to offer me on this!<!--Amazon_CLS_IM_END--><br />
<!-- google_ad_section_end -->
</div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>
