<?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: Do not use javascript for validations</title>
	<atom:link href="http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/</link>
	<description>Advanced katas for javascripters</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:10:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Dan</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-671</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 01 Dec 2008 14:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-671</guid>
		<description>@defaultCharacter Unfortunately, I could&#039;nt give you links to article about server-side validations because there are hundreds of ways of doing that. Maybe you could take a look at &lt;a href=&quot;http://www.rubyonrails.org/&quot; rel=&quot;nofollow&quot;&gt;Ruby On Rails&lt;/a&gt; and its &lt;a href=&quot;http://ar.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html&quot; rel=&quot;nofollow&quot;&gt;validation module&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@defaultCharacter Unfortunately, I could&#8217;nt give you links to article about server-side validations because there are hundreds of ways of doing that. Maybe you could take a look at <a href="http://www.rubyonrails.org/" rel="nofollow">Ruby On Rails</a> and its <a href="http://ar.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html" rel="nofollow">validation module</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: defaultCharacter</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-670</link>
		<dc:creator>defaultCharacter</dc:creator>
		<pubDate>Sat, 29 Nov 2008 19:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-670</guid>
		<description>Hey all!

Thanks for providing me more clues on how to keep spam from getting sent through my web site form.  It was a little freaky seeing how easy it was to input whatever and send to my server using Craig Francis&#039; tool!

Okay.  So you&#039;ve all made your point.  Now I have a question (from a relatively green person):  How can I do server-side validation?  Any samples or articles?  Obviously, I&#039;m going to be googling this later, but if you have any comments, that would be GREATLY appreciated.</description>
		<content:encoded><![CDATA[<p>Hey all!</p>
<p>Thanks for providing me more clues on how to keep spam from getting sent through my web site form.  It was a little freaky seeing how easy it was to input whatever and send to my server using Craig Francis&#8217; tool!</p>
<p>Okay.  So you&#8217;ve all made your point.  Now I have a question (from a relatively green person):  How can I do server-side validation?  Any samples or articles?  Obviously, I&#8217;m going to be googling this later, but if you have any comments, that would be GREATLY appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-165</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 24 May 2007 13:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-165</guid>
		<description>@Rick and Nater
I know it should have been &quot;Do not rely...&quot; but the problem is that title has low-impact. I&#039;ve seen a lot of people using javascript as the only validation and I wanted to catch these people.

So, I won&#039;t change the title and I hope that they will understand what I mean.</description>
		<content:encoded><![CDATA[<p>@Rick and Nater<br />
I know it should have been &#8220;Do not rely&#8230;&#8221; but the problem is that title has low-impact. I&#8217;ve seen a lot of people using javascript as the only validation and I wanted to catch these people.</p>
<p>So, I won&#8217;t change the title and I hope that they will understand what I mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BK</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-164</link>
		<dc:creator>BK</dc:creator>
		<pubDate>Thu, 24 May 2007 13:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-164</guid>
		<description>Subtilities of the language! :P</description>
		<content:encoded><![CDATA[<p>Subtilities of the language! <img src='http://www.javascriptkata.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Fletcher</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-163</link>
		<dc:creator>Rick Fletcher</dc:creator>
		<pubDate>Thu, 24 May 2007 05:49:06 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-163</guid>
		<description>I&#039;m with Nater, completely.  Your headline shout have read &quot;Do  not rely on javascript...&quot; instead of &quot;Do not use javascript...&quot;</description>
		<content:encoded><![CDATA[<p>I&#8217;m with Nater, completely.  Your headline shout have read &#8220;Do  not rely on javascript&#8230;&#8221; instead of &#8220;Do not use javascript&#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nater Kane</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-162</link>
		<dc:creator>Nater Kane</dc:creator>
		<pubDate>Fri, 18 May 2007 20:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-162</guid>
		<description>The idea of client-side validation being secure is something that isn&#039;t even worth discussing...
the benefits of the double check are very simple and with many common/popular server-side languages, the logic for front and back end should be very similar.
1) if the user fails clientside validation, you save having to make a round trip to the server, and the user may be shown a descriptive and contextual error/response message so they may correct the non-valid data. if they pass clientside validation, only then the data is passed to the server for the second validation.
2) isn&#039;t that good enough of a reason? a quality and humane user experience should come a close second to application security.</description>
		<content:encoded><![CDATA[<p>The idea of client-side validation being secure is something that isn&#8217;t even worth discussing&#8230;<br />
the benefits of the double check are very simple and with many common/popular server-side languages, the logic for front and back end should be very similar.<br />
1) if the user fails clientside validation, you save having to make a round trip to the server, and the user may be shown a descriptive and contextual error/response message so they may correct the non-valid data. if they pass clientside validation, only then the data is passed to the server for the second validation.<br />
2) isn&#8217;t that good enough of a reason? a quality and humane user experience should come a close second to application security.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Do not use Javascript for validation - Ej.am Forums</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-161</link>
		<dc:creator>Do not use Javascript for validation - Ej.am Forums</dc:creator>
		<pubDate>Sat, 28 Apr 2007 14:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-161</guid>
		<description>[...] no doubt, and I use it heavily. But the following article has given me a lot to think about.  Do not use javascript for validations &#124; Javascript Kata  Please share your [...]</description>
		<content:encoded><![CDATA[<p>[...] no doubt, and I use it heavily. But the following article has given me a lot to think about.  Do not use javascript for validations | Javascript Kata  Please share your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: All in a days work&#8230;</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-160</link>
		<dc:creator>All in a days work&#8230;</dc:creator>
		<pubDate>Fri, 27 Apr 2007 11:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-160</guid>
		<description>[...] Do not use javascript for validations Javascript is not secure. Your code is readable and it can be modified by anyone. It is great when you want to do a bookmarklet. It is not so great when you want to have a hard as a rock web application. (tags: JavaScript Date/Time) [...]</description>
		<content:encoded><![CDATA[<p>[...] Do not use javascript for validations Javascript is not secure. Your code is readable and it can be modified by anyone. It is great when you want to do a bookmarklet. It is not so great when you want to have a hard as a rock web application. (tags: JavaScript Date/Time) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BK</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-159</link>
		<dc:creator>BK</dc:creator>
		<pubDate>Thu, 26 Apr 2007 21:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-159</guid>
		<description>If you want a real world example, simply look here:
http://www.boingboing.net/2005/07/28/microsoft_genuine_ad.html</description>
		<content:encoded><![CDATA[<p>If you want a real world example, simply look here:<br />
<a href="http://www.boingboing.net/2005/07/28/microsoft_genuine_ad.html" rel="nofollow">http://www.boingboing.net/2005/07/28/microsoft_genuine_ad.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.javascriptkata.com/2007/04/25/do-not-use-javascript-for-validations/comment-page-1/#comment-158</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 26 Apr 2007 17:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=29#comment-158</guid>
		<description>@Timo
When I say that Javascript is not secure, I really mean it. Remember the validateDate() function in the post? To bypass it, anyone could write this in the address bar of their browser :

&lt;pre&gt;
javascript:validateDate = function(theDate) { return true; }
&lt;/pre&gt;

and it the function would be overwritten to always return true.

That&#039;s what I mean when I say that it&#039;s not secure.</description>
		<content:encoded><![CDATA[<p>@Timo<br />
When I say that Javascript is not secure, I really mean it. Remember the validateDate() function in the post? To bypass it, anyone could write this in the address bar of their browser :</p>
<pre>
javascript:validateDate = function(theDate) { return true; }
</pre>
<p>and it the function would be overwritten to always return true.</p>
<p>That&#8217;s what I mean when I say that it&#8217;s not secure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
