I think you need more than just "Test" in the remote: call. Look at
the jquery validation documentation and the examples he's provided.

For instance, this is my remote:
remote: {
                                                url: 
"/rtui/codeigniter/index.php/business_form/dupeCheck",
                                                type: "post",
                                                data: {
                                                        action: function() {
                                                                return 
$("#action").val();
                                                        },
                                                        bus_id: function() {
                                                                return 
$("#bus_id").val();
                                                        }
                                                }
                                        }

On Aug 8, 5:41 pm, chobo2 <mhub...@gmail.com> wrote:
> Hi
>
> I am not sure what I am doing wrong I am using the Jquery.Validate
> plugin and it has a remote field
>
> so I did this
>
> [code]    $("#mainForm").validate(
>         {
>             rules:
>             {
>                 UserName:
>                 {
>                     required: true
>                    ,remote: "Test"
>                 }
>              ,messages:
>             {
>                 UserName:
>                 {
>                     remote: "UserName has already been choosen. Please
> choose another one"
>                 }
>             }
>
>          }
> [/code]
> the required works fine. It's the remote. I am using asp.net mvc and
> the path is right it hits my method
>
>        [code] public bool Test(string userName)
>         {
>             return false;
>         }
> [/code]
>
> it returns false according to firebug yet jquery.validate does not
> kick in. I am using Version 1.5.5 of jquery.validate and jquery 1.3.2
>
> What did I miss?
>
> P.S what is the default message for remote?

Reply via email to