<?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: Mootools FormValidator – How to use (Final Part)</title> <atom:link href="http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/feed/" rel="self" type="application/rss+xml" /><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/</link> <description>The guide is definitive. Reality is frequently inaccurate.</description> <lastBuildDate>Tue, 07 Feb 2012 20:51:57 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Mario</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-885</link> <dc:creator>Mario</dc:creator> <pubDate>Tue, 21 Dec 2010 20:39:11 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-885</guid> <description>Nice to hear that, thx!</description> <content:encoded><![CDATA[<p>Nice to hear that, thx!</p> ]]></content:encoded> </item> <item><title>By: Emilio</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-883</link> <dc:creator>Emilio</dc:creator> <pubDate>Tue, 21 Dec 2010 17:06:56 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-883</guid> <description>very very useful! Thanks for your contribute! :)</description> <content:encoded><![CDATA[<p>very very useful! Thanks for your contribute! :)</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-161</link> <dc:creator>Mario</dc:creator> <pubDate>Tue, 19 Jan 2010 16:38:27 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-161</guid> <description>Interesting - that should of course be possible with a small custom validator. Have a look at part #4 now.</description> <content:encoded><![CDATA[<p>Interesting &#8211; that should of course be possible with a small custom validator. Have a look at part #4 now.</p> ]]></content:encoded> </item> <item><title>By: Michael Warkentin</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-160</link> <dc:creator>Michael Warkentin</dc:creator> <pubDate>Tue, 19 Jan 2010 16:26:30 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-160</guid> <description>Is there any way to specify a minLength IF the field is filled in?Eg. I want an optional field, but if something&#039;s entered there, it should be at least 5 characters.</description> <content:encoded><![CDATA[<p>Is there any way to specify a minLength IF the field is filled in?</p><p>Eg. I want an optional field, but if something&#8217;s entered there, it should be at least 5 characters.</p> ]]></content:encoded> </item> <item><title>By: Aaron Newton</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-149</link> <dc:creator>Aaron Newton</dc:creator> <pubDate>Tue, 12 Jan 2010 19:44:12 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-149</guid> <description>Yeah. As an example of how to write your own validators it&#039;s great stuff. All 3 tutorials are really informative. Keep it up.</description> <content:encoded><![CDATA[<p>Yeah. As an example of how to write your own validators it&#8217;s great stuff. All 3 tutorials are really informative. Keep it up.</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-148</link> <dc:creator>Mario</dc:creator> <pubDate>Tue, 12 Jan 2010 19:21:34 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-148</guid> <description>Thanks for the comment.You&#039;re right: The solution is not optimal when it comes to server load (of course depending on traffic, database implementation and so on).Same as the non-asynchronous request this is more a &quot;and-this-can-also-be-done-tutorial&quot; than a &quot;best-practice-for-all-cases-tutorial&quot; :)</description> <content:encoded><![CDATA[<p>Thanks for the comment.</p><p>You&#8217;re right: The solution is not optimal when it comes to server load (of course depending on traffic, database implementation and so on).</p><p>Same as the non-asynchronous request this is more a &#8220;and-this-can-also-be-done-tutorial&#8221; than a &#8220;best-practice-for-all-cases-tutorial&#8221; :)</p> ]]></content:encoded> </item> <item><title>By: Aaron Newton</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-147</link> <dc:creator>Aaron Newton</dc:creator> <pubDate>Tue, 12 Jan 2010 19:06:56 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-147</guid> <description>This is great stuff, but I have one comment. Form.Validator validates inputs both on change and on submit, which means that the user is going to submit the form and you&#039;ll have this synchronous hit to the server followed immediately by another hit (the form actually being submitted). If you wanted to avoid this you would have to do some extra leg work that I won&#039;t try and cram into this comment. I think it&#039;s actually a better solution to write this code on its own and not use Form.Validator for this particular use case. Add a change event to the username input and do your check, showing a hint when the name is taken, but don&#039;t prevent submitting the form or anything. Let the back end handle that collision as normal.The complexity of this pattern is the reason Form.Validator doesn&#039;t ship with a built-in validator for this problem...</description> <content:encoded><![CDATA[<p>This is great stuff, but I have one comment. Form.Validator validates inputs both on change and on submit, which means that the user is going to submit the form and you&#8217;ll have this synchronous hit to the server followed immediately by another hit (the form actually being submitted). If you wanted to avoid this you would have to do some extra leg work that I won&#8217;t try and cram into this comment. I think it&#8217;s actually a better solution to write this code on its own and not use Form.Validator for this particular use case. Add a change event to the username input and do your check, showing a hint when the name is taken, but don&#8217;t prevent submitting the form or anything. Let the back end handle that collision as normal.</p><p>The complexity of this pattern is the reason Form.Validator doesn&#8217;t ship with a built-in validator for this problem&#8230;</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-143</link> <dc:creator>Mario</dc:creator> <pubDate>Tue, 29 Dec 2009 02:10:32 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-143</guid> <description>Good point. The W3C validator and HTML tidy at least do not complain.. I assume if the CSS-classes are listed first, it won&#039;t make problems. The mootools-documentation states it&#039;s valid XHTML: http://mootools.net/docs/more/Forms/Form.Validator#Form-Validator - see &quot;Notes&quot;</description> <content:encoded><![CDATA[<p>Good point. The W3C validator and HTML tidy at least do not complain.. I assume if the CSS-classes are listed first, it won&#8217;t make problems.<br /> The mootools-documentation states it&#8217;s valid XHTML:<br /> <a href="http://mootools.net/docs/more/Forms/Form.Validator#Form-Validator" rel="nofollow">http://mootools.net/docs/more/Forms/Form.Validator#Form-Validator</a> &#8211; see &#8220;Notes&#8221;</p> ]]></content:encoded> </item> <item><title>By: RB</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-142</link> <dc:creator>RB</dc:creator> <pubDate>Tue, 29 Dec 2009 01:12:16 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-142</guid> <description>Are single quote characters valid for class attributes? ex. class=&quot;matchInput:&#039;password&#039;&quot; I know that : and . are technically allowed in &#039;id&#039; attributes according to the w3c but still don&#039;t behave well across all browsers so best to avoid. I&#039;m not sure of the validation rules for &#039;class&#039; but it seems strange that a single quote would be a valid value.</description> <content:encoded><![CDATA[<p>Are single quote characters valid for class attributes?<br /> ex. class=&#8221;matchInput:&#8217;password&#8217;&#8221;<br /> I know that : and . are technically allowed in &#8216;id&#8217; attributes according to the w3c but still don&#8217;t behave well across all browsers so best to avoid.<br /> I&#8217;m not sure of the validation rules for &#8216;class&#8217; but it seems strange that a single quote would be a valid value.</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-141</link> <dc:creator>Mario</dc:creator> <pubDate>Mon, 28 Dec 2009 17:52:58 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-141</guid> <description>Thanks! Fixed it (and added the version number).</description> <content:encoded><![CDATA[<p>Thanks! Fixed it (and added the version number).</p> ]]></content:encoded> </item> <item><title>By: Judd Kussrow</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-140</link> <dc:creator>Judd Kussrow</dc:creator> <pubDate>Mon, 28 Dec 2009 16:47:43 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-140</guid> <description>My bad, you might want to mention what version of mootools-more you are using.  Aaron changed it from 1.2.3 to 1.2.4 to use the dot.</description> <content:encoded><![CDATA[<p>My bad, you might want to mention what version of mootools-more you are using.  Aaron changed it from 1.2.3 to 1.2.4 to use the dot.</p> ]]></content:encoded> </item> <item><title>By: Judd Kussrow</title><link>http://www.chipwreck.de/blog/2010/01/19/mootools-formvalidator-how-to-use-part-4/comment-page-1/#comment-139</link> <dc:creator>Judd Kussrow</dc:creator> <pubDate>Mon, 28 Dec 2009 16:36:33 +0000</pubDate> <guid isPermaLink="false">http://www.chipwreck.de/blog/?p=3720#comment-139</guid> <description>Additionally, the class is called FormValidator not Form.Validator</description> <content:encoded><![CDATA[<p>Additionally, the class is called FormValidator not Form.Validator</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.chipwreck.de @ 2012-02-10 09:45:20 by W3 Total Cache -->
