This is my first Silverstripe project and so far so good. I've managed to get three different jquery routines to work in my application, (two menus and one image display.)
I am attempting to implement the userforms module but I can't get the jquery email address validation to work.
I can see the jquery.validate.js file is where it should be and everything else works, but I can put garbage of any kind in the email field and it passes successfully.
I've pasted the relevant code from "view page source" below, just to verify that the jquery routine is there.
Is there something I'm missing?
<script type="text/javascript" src="http://mydomain.com/sapphire/thirdparty/jquery/jquery.js?m=1292911507"></script><script type="text/javascript" src="http://mydomain.com/userforms/thirdparty/jquery-validate/jquery.validate.min.js?m=1298687018"></script><script type="text/javascript">//<![CDATA[
(function($) {
$(document).ready(function() {
$("#Form_Form").validate({
errorClass: "required",
messages:
{
EditableTextField1:"Please enter your name.", EditableTextField2:"Test error message."
}
,
rules:
{
EditableTextField1:{
required:1, minlength:"2", maxlength:"45"
}
, EditableTextField2:{
required:1
}
}
});
});
})(jQuery);
//]]></script><script type="text/javascript">//<![CDATA[
(function($) {
$(document).ready(function() {
})
})(jQuery);
//]]></script>