This is a migrated thread and some comments may be shown as answers.

Jquery validation plugin and telerik

3 Answers 193 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Joao Araujo
Top achievements
Rank 1
Joao Araujo asked on 28 Jan 2010, 04:43 AM
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,

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 28 Jan 2010, 04:03 PM
Hello Joao Araujo,

Have you checked this help topic:
How to use a jQuery plugin

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Joao Araujo
Top achievements
Rank 1
answered on 09 Feb 2010, 01:22 AM
Yes, I read it before.

Anyway, I fixed it . Thanks.


Joao,
0
Aydın Kara
Top achievements
Rank 1
answered on 28 Dec 2010, 01:22 PM
Hi,

I have the same problem.. How did you solve this? Thanks.

Kerem
Tags
Ajax
Asked by
Joao Araujo
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Joao Araujo
Top achievements
Rank 1
Aydın Kara
Top achievements
Rank 1
Share this question
or