<?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 Validation with Django Forms</title> <atom:link href="http://streamhacker.com/2010/03/08/jquery-validation-django-forms/feed/" rel="self" type="application/rss+xml" /><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link> <description>Weotta be Hacking</description> <lastBuildDate>Tue, 07 Sep 2010 02:28:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com" /> <atom:link rel="hub" href="http://superfeedr.com/hubbub" /> <item><title>By: Jacob</title><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/comment-page-1/#comment-506</link> <dc:creator>Jacob</dc:creator> <pubDate>Mon, 08 Mar 2010 21:22:02 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.com/?p=1002#comment-506</guid> <description>Great idea, Dan. Unfortunately, I&#039;m just not sure how reusable that wrapper would be. I find myself creating fields in so many different ways (templates, formsets with form_field_callback, etc) that I&#039;d be lucky to use it 50% of the time. But the idea did come to mind while writing this, and your clarification makes me think that a generic ValidationForm superclass could handle the __init__ field class assignment.</description> <content:encoded><![CDATA[<p>Great idea, Dan. Unfortunately, I&#8217;m just not sure how reusable that wrapper would be. I find myself creating fields in so many different ways (templates, formsets with form_field_callback, etc) that I&#8217;d be lucky to use it 50% of the time. But the idea did come to mind while writing this, and your clarification makes me think that a generic ValidationForm superclass could handle the __init__ field class assignment.</p> ]]></content:encoded> </item> <item><title>By: Dan Ward</title><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/comment-page-1/#comment-505</link> <dc:creator>Dan Ward</dc:creator> <pubDate>Mon, 08 Mar 2010 20:28:13 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.com/?p=1002#comment-505</guid> <description>Just to add, the wrapper method would run inside the form&#039;s &#039;__init__&#039; method, AFTER super&#039;ing it.&lt;blockquote&gt;
&lt;a href=&quot;#comment-504&quot; rel=&quot;nofollow&quot;&gt;
&lt;strong&gt;&lt;em&gt;Dan Ward:&lt;/em&gt;&lt;/strong&gt;
&lt;/a&gt;
To prevent repeating yourself with the initial widget class attributes, it may be worth creating a wrapper, which iterates over each field, checking the required, max_length and min_length values, then applying the class respectively.&lt;/blockquote&gt;</description> <content:encoded><![CDATA[<p>Just to add, the wrapper method would run inside the form&#8217;s &#8216;__init__&#8217; method, AFTER super&#8217;ing it.</p><blockquote><p> <a
href="#comment-504" rel="nofollow"><br
/> <strong><em>Dan Ward:</em></strong><br
/> </a><br
/> To prevent repeating yourself with the initial widget class attributes, it may be worth creating a wrapper, which iterates over each field, checking the required, max_length and min_length values, then applying the class respectively.</p></blockquote> ]]></content:encoded> </item> <item><title>By: Dan Ward</title><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/comment-page-1/#comment-504</link> <dc:creator>Dan Ward</dc:creator> <pubDate>Mon, 08 Mar 2010 20:26:17 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.com/?p=1002#comment-504</guid> <description>Nice guide, although may I add...To prevent repeating yourself with the initial widget class attributes, it may be worth creating a wrapper, which iterates over each field, checking the required, max_length and min_length values, then applying the class respectively.This way, you prevent the potential issue of having validation errors for data, which may, in fact be valid.Of course, the other option is to output the field however you like and handle the form.fieldname.field.required (etc) attributes in the template and applying the class there.Only a suggestion and I&#039;m sure many will find the article very helpful :)</description> <content:encoded><![CDATA[<p>Nice guide, although may I add&#8230;</p><p>To prevent repeating yourself with the initial widget class attributes, it may be worth creating a wrapper, which iterates over each field, checking the required, max_length and min_length values, then applying the class respectively.</p><p>This way, you prevent the potential issue of having validation errors for data, which may, in fact be valid.</p><p>Of course, the other option is to output the field however you like and handle the form.fieldname.field.required (etc) attributes in the template and applying the class there.</p><p>Only a suggestion and I&#8217;m sure many will find the article very helpful <img
src='http://streamhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Jacob</title><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/comment-page-1/#comment-503</link> <dc:creator>Jacob</dc:creator> <pubDate>Mon, 08 Mar 2010 19:37:50 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.com/?p=1002#comment-503</guid> <description>Thanks, I didn&#039;t know about dajax.</description> <content:encoded><![CDATA[<p>Thanks, I didn&#8217;t know about dajax.</p> ]]></content:encoded> </item> <item><title>By: gerardp</title><link>http://streamhacker.com/2010/03/08/jquery-validation-django-forms/comment-page-1/#comment-502</link> <dc:creator>gerardp</dc:creator> <pubDate>Mon, 08 Mar 2010 19:27:03 +0000</pubDate> <guid
isPermaLink="false">http://streamhacker.com/?p=1002#comment-502</guid> <description>Do you know dajax?
&quot;easy to use AJAX libraries for django&quot;http://dajaxproject.com/</description> <content:encoded><![CDATA[<p>Do you know dajax?<br
/> &#8220;easy to use AJAX libraries for django&#8221;</p><p><a
href="http://dajaxproject.com/" rel="nofollow">http://dajaxproject.com/</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: streamhacker.com @ 2010-09-09 00:02:41 -->