<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1848</link>
			<description>Excellent tutorial.  Helped me greatly when I was trying to make a site's contact form have a more polished and professional look.

Thanks once again, Aram!</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1848</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1833</link>
			<description>I had the same issue, but mine was a nice weird one. On our page.ss, at the very bottom we had the following code just before the &lt;/body&gt;:

  &lt;!--uncomment if eventsearch --&gt;
    &lt;!--&lt;script src=&quot;http://www.ssbits.com/themes/[...]/js/eventsearch.js&quot;&gt;&lt;/script&gt; --&gt;

I followed the instructions on this page to a tee, but alas no validation still. So I looked at the source code and found that the validation code inside the init() was being inserted INSIDE these comments tags!

I removed the tags as we really don't need them and voila! I think this might be a bug in SS... anyways hope this may help someone else as it took me hours to figure out why validation wasn't working...</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1833</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1249</link>
			<description>Hi Aram,

I just want to thank you for this lovely SilverStripe resource site - needed a simple contact form in SilverStripe, and wanted to use spam protection and jQuery validation, found all i needed in this post and the Creating a simple contact form post :-)
All working in a matter of minutes thx to you.

Keep up your great work!</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_1249</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_526</link>
			<description>If your using the blog module, there is a couple more js scripts you should block:

Requirements::block('cms/javascript/PageCommentInterface.js');
Requirements::block('sapphire/thirdparty/scriptaculous/effects.js');</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_526</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_525</link>
			<description>Hi Salva, 

yes this is convention as it prevents the page being help up by loading JS.

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_525</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_524</link>
			<description>Hey Aram,

is is correct that the the included jquery files and the custonScript will be embeded just before the closing BODY tag?

salva</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_524</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_516</link>
			<description>@Colin Burns thank you very much you just saved me a fair swag of time. Thanks again.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_516</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_459</link>
			<description>Thanks for the tutorial, really helpful and super easy to implement.

I am using memberprofiles module and ran into 2 problems. The first one I have solved. Using the code you have above did not stop prototype etc from loading, although it did on other forms. With the memberprofiles module I had to add the following:

	public function init() {
		parent::init();	
		Validator::set_javascript_validation_handler('none');
		Requirements::block('sapphire/thirdparty/prototype/prototype.js'); 
		Requirements::block('sapphire/thirdparty/behaviour/behaviour.js'); 
		Requirements::block('sapphire/javascript/prototype_improvements.js'); 
		Requirements::block('sapphire/javascript/Validator.js'); 
		Requirements::block('sapphire/javascript/i18n.js'); 
		Requirements::block('sapphire/javascript/lang/en_US.js');
		Requirements::javascript(&quot;http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js&quot;);
		Requirements::javascript(&quot;mysite/javascript/jquery.validations.rules.js&quot;);
		Requirements::customScript('
// VALIDATION CODE GOES HERE
');
}

As you can see I have had to explicitly block the prototype files etc. Hopefully this helps someone else save an hour ;)

Second problem is that the Password and Confirm Password fields in SilverStripe output the field names like Password[_Password] or Password[_Confirm_Password].

When I add these field names into the rule it breaks the JS and doesn't work. Any suggestions?

Cheers,
Colin

</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/#PageComment_459</guid>
		</item>
		

	</channel>
</rss>