<?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: Really Easy Field Validation with Prototype</title>
	<atom:link href="http://ajaxian.com/archives/really-easy-field-validation-with-prototype/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Daniel Skinner</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-257389</link>
		<dc:creator>Daniel Skinner</dc:creator>
		<pubDate>Thu, 18 Oct 2007 20:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-257389</guid>
		<description>Nice!

Extensible and easy to use - thinking of integrating this into PEAR QuickForm since I don&#039;t like the native Javascript implementation.</description>
		<content:encoded><![CDATA[<p>Nice!</p>
<p>Extensible and easy to use &#8211; thinking of integrating this into PEAR QuickForm since I don&#8217;t like the native Javascript implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalinux</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-250023</link>
		<dc:creator>Catalinux</dc:creator>
		<pubDate>Wed, 02 May 2007 15:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-250023</guid>
		<description>Hi,

I do not think that is scalable such form of doing validation, using name classes. I think it looks cleaner if we use such model.

[code]
var frm=new FormValidation();
frm.addValidtion(&#039;field1&#039;,&#039;isNumber&#039;,&#039;Is not a number&#039;);
frm.addValidation(&#039;field2&#039;,&#039;isNumber&#039;);
frm.addValidation(&#039;field3&#039;,&#039;isEmail&#039;);
frm.addValidation(&#039;field3&#039;,&#039;ajax:http://urlto.check.returns/true/or/fals&#039;,&#039;It has to be from qmail.com&#039;);
frm.setErrorBehavior(&#039;stopOnFirst&#039;);//stop after miss validate 
//frm.setErrorBehavior(&#039;stopAtLast&#039;);
[/code]

Such model cand be used in PHP, Perl or smth else.
Do you know such library that uses Prototype? Otherwise I&#039;ll do it</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I do not think that is scalable such form of doing validation, using name classes. I think it looks cleaner if we use such model.</p>
<p>[code]<br />
var frm=new FormValidation();<br />
frm.addValidtion('field1','isNumber','Is not a number');<br />
frm.addValidation('field2','isNumber');<br />
frm.addValidation('field3','isEmail');<br />
frm.addValidation('field3','ajax:<a href="http://urlto.check.returns/true/or/fals&#039;,&#039;It" rel="nofollow">http://urlto.check.returns/true/or/fals&#039;,&#039;It</a> has to be from qmail.com');<br />
frm.setErrorBehavior('stopOnFirst');//stop after miss validate<br />
//frm.setErrorBehavior('stopAtLast');<br />
[/code]</p>
<p>Such model cand be used in PHP, Perl or smth else.<br />
Do you know such library that uses Prototype? Otherwise I&#8217;ll do it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-245262</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 15 Dec 2006 18:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-245262</guid>
		<description>You can easy add server validation.
Just add new rules like : 

[&#039;validate-unique-email&#039;, &#039;Cet email est dÃ©jÃ  utilisÃ©&#039;, function(v) {
var laRequete = new Ajax.Request(
&#039;checkEmail.php&#039;, { method: &#039;post&#039;, asynchronous: false, parameters: &#039;email=&#039;+v });
return laRequete.transport.responseText;
}]</description>
		<content:encoded><![CDATA[<p>You can easy add server validation.<br />
Just add new rules like : </p>
<p>['validate-unique-email', 'Cet email est dÃ©jÃ  utilisÃ©', function(v) {<br />
var laRequete = new Ajax.Request(<br />
'checkEmail.php', { method: 'post', asynchronous: false, parameters: 'email='+v });<br />
return laRequete.transport.responseText;<br />
}]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-245115</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 12 Dec 2006 03:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-245115</guid>
		<description>I think this is a bit misleading to call this ajax validation.  You&#039;re using ajax to show error messages, but there is actually no interaction with the server for the actual validation.</description>
		<content:encoded><![CDATA[<p>I think this is a bit misleading to call this ajax validation.  You&#8217;re using ajax to show error messages, but there is actually no interaction with the server for the actual validation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hebiryu</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-108220</link>
		<dc:creator>hebiryu</dc:creator>
		<pubDate>Thu, 28 Sep 2006 10:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-108220</guid>
		<description>oh my god.. you save mylife !!

it&#039;s very easy to use &amp; modify.

very thanks Rob !!!!</description>
		<content:encoded><![CDATA[<p>oh my god.. you save mylife !!</p>
<p>it&#8217;s very easy to use &amp; modify.</p>
<p>very thanks Rob !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmouawad</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-19433</link>
		<dc:creator>pmouawad</dc:creator>
		<pubDate>Sun, 04 Jun 2006 15:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-19433</guid>
		<description>It&#039;s rather a great beginning, just few drawback:
- Id attribute becomes mandatory since you use it to add/remove the advice.
- No i18n of messages
- It would be great if validation rules could take arguments, format for date fields (I don&#039;t know how to do it without adding custom attributes to HTML)
How about submitting your code to commons-validator ?
Thank you for this idea.</description>
		<content:encoded><![CDATA[<p>It&#8217;s rather a great beginning, just few drawback:<br />
- Id attribute becomes mandatory since you use it to add/remove the advice.<br />
- No i18n of messages<br />
- It would be great if validation rules could take arguments, format for date fields (I don&#8217;t know how to do it without adding custom attributes to HTML)<br />
How about submitting your code to commons-validator ?<br />
Thank you for this idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prototype &#187; Prototype Services</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-14460</link>
		<dc:creator>Prototype &#187; Prototype Services</dc:creator>
		<pubDate>Thu, 25 May 2006 10:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-14460</guid>
		<description>[...] Ajaxian Really Easy Field Validation with PrototypeAjaxian Really Easy Field Validation with Prototype. A possible AJAX form validation solution: Really Easy Field Validation with Prototype. Not quite there yet, but very close.http://ajaxian [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajaxian Really Easy Field Validation with PrototypeAjaxian Really Easy Field Validation with Prototype. A possible AJAX form validation solution: Really Easy Field Validation with Prototype. Not quite there yet, but very close.<a href="http://ajaxian" rel="nofollow">http://ajaxian</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anant bhatia</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-13820</link>
		<dc:creator>anant bhatia</dc:creator>
		<pubDate>Wed, 24 May 2006 08:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-13820</guid>
		<description>This was good and useful.. Thanks</description>
		<content:encoded><![CDATA[<p>This was good and useful.. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desarrollo Web</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-12919</link>
		<dc:creator>Desarrollo Web</dc:creator>
		<pubDate>Tue, 23 May 2006 01:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-12919</guid>
		<description>&lt;strong&gt;Ajaxian Â» Really Easy Field Validation with Prototype&lt;/strong&gt;

A possible AJAX form validation solution: &#8220;Really Easy&#8221; Field Validation with Prototype. Not quite there yet, but very close.http://ajaxian.com/archives/really-easy-field-validation-with-prototype...</description>
		<content:encoded><![CDATA[<p><strong>Ajaxian Â» Really Easy Field Validation with Prototype</strong></p>
<p>A possible AJAX form validation solution: &ldquo;Really Easy&rdquo; Field Validation with Prototype. Not quite there yet, but very close.<a href="http://ajaxian.com/archives/really-easy-field-validation-with-prototype.." rel="nofollow">http://ajaxian.com/archives/really-easy-field-validation-with-prototype..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Lazzeri</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-10857</link>
		<dc:creator>Marco Lazzeri</dc:creator>
		<pubDate>Fri, 19 May 2006 12:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-10857</guid>
		<description>Strass: you should have a look at the Scripaculous wiki. It&#039;s both about the library itself and Prototype:

http://wiki.script.aculo.us/scriptaculous/show/Prototype</description>
		<content:encoded><![CDATA[<p>Strass: you should have a look at the Scripaculous wiki. It&#8217;s both about the library itself and Prototype:</p>
<p><a href="http://wiki.script.aculo.us/scriptaculous/show/Prototype" rel="nofollow">http://wiki.script.aculo.us/scriptaculous/show/Prototype</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: francisco</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9560</link>
		<dc:creator>francisco</dc:creator>
		<pubDate>Fri, 12 May 2006 19:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9560</guid>
		<description>Xforms is the answer if you need validation. See spec, XForms can validate based on W3C schema. For a semi complete javascript XForms please see FormFaces at source forge.</description>
		<content:encoded><![CDATA[<p>Xforms is the answer if you need validation. See spec, XForms can validate based on W3C schema. For a semi complete javascript XForms please see FormFaces at source forge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajaxian Â» Really Easy Field Validation with Prototype - Matt Heerema : Web Design</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9299</link>
		<dc:creator>Ajaxian Â» Really Easy Field Validation with Prototype - Matt Heerema : Web Design</dc:creator>
		<pubDate>Thu, 11 May 2006 03:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9299</guid>
		<description>[...] A possible AJAX form validation solution: &#8220;Really Easy&#8221; Field Validation with Prototype. Not quite there yet, but very close. [...]</description>
		<content:encoded><![CDATA[<p>[...] A possible AJAX form validation solution: &#8220;Really Easy&#8221; Field Validation with Prototype. Not quite there yet, but very close. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9256</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Wed, 10 May 2006 18:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9256</guid>
		<description>Still kinda buggy.  It works good in Firefox but in IE on the same form I only get the first error box showing up.</description>
		<content:encoded><![CDATA[<p>Still kinda buggy.  It works good in Firefox but in IE on the same form I only get the first error box showing up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9244</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 10 May 2006 16:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9244</guid>
		<description>The default styles are not super great, but you can change them.  It would be nice if the default error messages were prettier.  Anyone volunteer a good design for the author to integrate?</description>
		<content:encoded><![CDATA[<p>The default styles are not super great, but you can change them.  It would be nice if the default error messages were prettier.  Anyone volunteer a good design for the author to integrate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9233</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 10 May 2006 13:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9233</guid>
		<description>Volkan, I totally agree with you. Things can get way out of hand when trying to handle all possible cases in your validation. I believe there is a difference between validation and business logic though. I always handle generic validation (username, password, dollar, float, char, etc) on the client side and business logic (&quot;Salary should not be greater than 10K if the person is female, but if he is male there is no uplimit in salary plus he can add additional data to field x&quot;) on the server side.  For me, in my world, this has many advantages and keeps life simple (I am a developer/designer writing web applications for corporate clients). 

I have been reading up on AJAX more and more and I am wondering if anyone has ever incorporated AJAX with this type of validation.

Anyway, I have to say I was not all that impressed with the demo. I found it quite hard on the eyes. Is it just me?</description>
		<content:encoded><![CDATA[<p>Volkan, I totally agree with you. Things can get way out of hand when trying to handle all possible cases in your validation. I believe there is a difference between validation and business logic though. I always handle generic validation (username, password, dollar, float, char, etc) on the client side and business logic (&#8220;Salary should not be greater than 10K if the person is female, but if he is male there is no uplimit in salary plus he can add additional data to field x&#8221;) on the server side.  For me, in my world, this has many advantages and keeps life simple (I am a developer/designer writing web applications for corporate clients). </p>
<p>I have been reading up on AJAX more and more and I am wondering if anyone has ever incorporated AJAX with this type of validation.</p>
<p>Anyway, I have to say I was not all that impressed with the demo. I found it quite hard on the eyes. Is it just me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volkan ozcelik</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9208</link>
		<dc:creator>volkan ozcelik</dc:creator>
		<pubDate>Wed, 10 May 2006 07:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9208</guid>
		<description>My common experience with form is that, the more sophisticated they are the more custom validation you will need none the less.

The problem arises when you need some combined validation. 
&quot;Salary should not be greater than 10K if the person is female, but if he is male there is no uplimit in salary plus he can add additional data to field x&quot;

No I&#039;m not discriminating males over females. But I guess you see what I mean. Form validation is an ever-growing monster. And when you aim to create a generic validator for all possible cases you end up with a truckload of garbage code in your library. Which possibly will grow ever more when you try to integrate a &quot;yet another&quot; business logic to it which you have not thought apriori.

(don&#039;t get me wrong: I do not say scriptaculous is garbage. It is an excellent framework to make client-side  coding easy and fun, and the Validator object demonstrated here does a good job.)

Though, the object is an excellent tool for &quot;generic&quot; forms (username, email, password type).</description>
		<content:encoded><![CDATA[<p>My common experience with form is that, the more sophisticated they are the more custom validation you will need none the less.</p>
<p>The problem arises when you need some combined validation.<br />
&#8220;Salary should not be greater than 10K if the person is female, but if he is male there is no uplimit in salary plus he can add additional data to field x&#8221;</p>
<p>No I&#8217;m not discriminating males over females. But I guess you see what I mean. Form validation is an ever-growing monster. And when you aim to create a generic validator for all possible cases you end up with a truckload of garbage code in your library. Which possibly will grow ever more when you try to integrate a &#8220;yet another&#8221; business logic to it which you have not thought apriori.</p>
<p>(don&#8217;t get me wrong: I do not say scriptaculous is garbage. It is an excellent framework to make client-side  coding easy and fun, and the Validator object demonstrated here does a good job.)</p>
<p>Though, the object is an excellent tool for &#8220;generic&#8221; forms (username, email, password type).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Tetlaw</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9193</link>
		<dc:creator>Andrew Tetlaw</dc:creator>
		<pubDate>Wed, 10 May 2006 00:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9193</guid>
		<description>The optional effects hook is already on my list :)</description>
		<content:encoded><![CDATA[<p>The optional effects hook is already on my list :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Strass</title>
		<link>http://ajaxian.com/archives/really-easy-field-validation-with-prototype/comment-page-1#comment-9188</link>
		<dc:creator>Strass</dc:creator>
		<pubDate>Tue, 09 May 2006 22:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1143#comment-9188</guid>
		<description>BTW, is there a website trying to centralize all prototype or scriptaculous based libraries ?</description>
		<content:encoded><![CDATA[<p>BTW, is there a website trying to centralize all prototype or scriptaculous based libraries ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

