Hello,
I am using the jquery.validation plugin to validate client side fields.
Unfortunately, forms with errors are being submitted to the server .
here is my script
$("#aspnetForm").validate({
onsubmit: true,
required: true,
errorClass: "err",
onkeyup: false,
onblur: false,
ignore: ".rdfd_, .rwDialogInput",
focusInvalid: false,
errorPlacement: function(error, element) {
$element.addClass(errorClass);
},
highlight: function(element, errorClass, validClass) {
$(element).addClass(errorClass).removeClass(validClass);
},
unhighlight: function(element, errorClass, validClass) {
$(element).removeClass(errorClass).addClass(validClass);
}
});
It does not work on asp.net telerik ajaxfied but work anywhere else. What I noticed is that
the ajax module is stealing the form submit somehow. I can see the jump to the telerik lib, but cant debug
the compressed file.
I am using Telerik 2009.3 . Anybody has a hint on this? I am struggling with it for a while without success.
Thanks in advance,
Joao,
I am using the jquery.validation plugin to validate client side fields.
Unfortunately, forms with errors are being submitted to the server .
here is my script
$("#aspnetForm").validate({
onsubmit: true,
required: true,
errorClass: "err",
onkeyup: false,
onblur: false,
ignore: ".rdfd_, .rwDialogInput",
focusInvalid: false,
errorPlacement: function(error, element) {
$element.addClass(errorClass);
},
highlight: function(element, errorClass, validClass) {
$(element).addClass(errorClass).removeClass(validClass);
},
unhighlight: function(element, errorClass, validClass) {
$(element).removeClass(errorClass).addClass(validClass);
}
});
It does not work on asp.net telerik ajaxfied but work anywhere else. What I noticed is that
the ajax module is stealing the form submit somehow. I can see the jump to the telerik lib, but cant debug
the compressed file.
I am using Telerik 2009.3 . Anybody has a hint on this? I am struggling with it for a while without success.
Thanks in advance,
Joao,