<?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: Validation, Business and Functional</title>
	<atom:link href="http://adamfortuna.com/2007/05/15/validation-business-and-functional/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamfortuna.com/2007/05/15/validation-business-and-functional/</link>
	<description>Rants on technology, Ruby on Rails, Javascript and UI Design by Adam Fortuna</description>
	<lastBuildDate>Tue, 20 Apr 2010 08:57:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joey</title>
		<link>http://adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-71220</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Sat, 26 Jan 2008 09:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-71220</guid>
		<description>@ziggy

I agree with you.. Don&#039;t use the expandos.</description>
		<content:encoded><![CDATA[<p>@ziggy</p>
<p>I agree with you.. Don&#8217;t use the expandos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fortuna</title>
		<link>http://adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8437</link>
		<dc:creator>Adam Fortuna</dc:creator>
		<pubDate>Fri, 18 May 2007 22:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8437</guid>
		<description>@Brian 
Good point! I hadn&#039;t thought about screen readers for that case. I&#039;d probably handle that case in the same way i&#039;d do for if javascript was disabled -- redisplay the entire form in the updated state with the errors in there already. The problem with that though is that i&#039;d have to have the markup in the form generation part, or create a form generator like you mentioned. I like the idea in theory of having a form generator, but it&#039;d have to be very close sytanx to the actual form. As cool as it would be to have a generator that does everything you want, I don&#039;t want to get edged into a corner where I&#039;m not implementing what I want because it wouldn&#039;t be easy with the builder.

Definitely have to watch the ajaxproxy though. I agree it could make things even easier for validation. 

@Ziggy
You&#039;re probably right. Having a new attribute wouldn&#039;t validate in xhtml strict I don&#039;t think. Doing everything with classes would work though. I&#039;d probably edge away from adding the datatypes in javascript though, just because I&#039;d like to have all information about the objects validation rules in one place.</description>
		<content:encoded><![CDATA[<p>@Brian<br />
Good point! I hadn&#8217;t thought about screen readers for that case. I&#8217;d probably handle that case in the same way i&#8217;d do for if javascript was disabled &#8212; redisplay the entire form in the updated state with the errors in there already. The problem with that though is that i&#8217;d have to have the markup in the form generation part, or create a form generator like you mentioned. I like the idea in theory of having a form generator, but it&#8217;d have to be very close sytanx to the actual form. As cool as it would be to have a generator that does everything you want, I don&#8217;t want to get edged into a corner where I&#8217;m not implementing what I want because it wouldn&#8217;t be easy with the builder.</p>
<p>Definitely have to watch the ajaxproxy though. I agree it could make things even easier for validation. </p>
<p>@Ziggy<br />
You&#8217;re probably right. Having a new attribute wouldn&#8217;t validate in xhtml strict I don&#8217;t think. Doing everything with classes would work though. I&#8217;d probably edge away from adding the datatypes in javascript though, just because I&#8217;d like to have all information about the objects validation rules in one place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ziggy</title>
		<link>http://adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8364</link>
		<dc:creator>ziggy</dc:creator>
		<pubDate>Fri, 18 May 2007 08:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8364</guid>
		<description>Don&#039;t use expandos; add the class &quot;validate&quot;. You can even do &quot;validate-email&quot; and such.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use expandos; add the class &#8220;validate&#8221;. You can even do &#8220;validate-email&#8221; and such.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Swartzfager</title>
		<link>http://adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8150</link>
		<dc:creator>Brian Swartzfager</dc:creator>
		<pubDate>Wed, 16 May 2007 11:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamfortuna.com/2007/05/15/validation-business-and-functional/#comment-8150</guid>
		<description>I&#039;d been thinking about doing something similar as part of an actual form generator off and on over the past few months.

I was about to get serious about it when all this information about Scorpio started coming out.  When I read about the new cfajaxproxy tag, which would allow you to call CFC methods via AJAX, I realized that I&#039;d better wait and see what that tag can do:  if it lives up to its promise, you could write a single set of validation algorithms that could be used to do both client-side and server-side validation.

One comment about your plans:  displaying validation errors next to the form elements that failed their validation tests is nice, but it could be a problem for those who use screen readers, as the screen reader may not be aware that new text has been displayed and that it needs to read it off.  Not saying you need to scrap the idea, but you might want to provide a means for certain users to get their validation errors via a JavaScript pop-up box (which I believe most screen readers will acknowledge and read off).

Sounds like you&#039;re off to a good start, though.</description>
		<content:encoded><![CDATA[<p>I&#8217;d been thinking about doing something similar as part of an actual form generator off and on over the past few months.</p>
<p>I was about to get serious about it when all this information about Scorpio started coming out.  When I read about the new cfajaxproxy tag, which would allow you to call CFC methods via AJAX, I realized that I&#8217;d better wait and see what that tag can do:  if it lives up to its promise, you could write a single set of validation algorithms that could be used to do both client-side and server-side validation.</p>
<p>One comment about your plans:  displaying validation errors next to the form elements that failed their validation tests is nice, but it could be a problem for those who use screen readers, as the screen reader may not be aware that new text has been displayed and that it needs to read it off.  Not saying you need to scrap the idea, but you might want to provide a means for certain users to get their validation errors via a JavaScript pop-up box (which I believe most screen readers will acknowledge and read off).</p>
<p>Sounds like you&#8217;re off to a good start, though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
