Hello,

I am trying to set up a remote validation field using the Validate plugin but 
for some reason it's not working.  Here is my code,

$("#myform").validate({
  rules: {
    name: {
        remote: {
            url: "/remote-validation/sample/remoteValidate",
            data: { field: 'name' }
        }
    },
    age:{
        required:true,
        number:true
    }
  }
});

 
The error I am getting is below.
 
s.url.match is not a function
http://localhost:9090/remote-validation/js/jquery/jquery-1.2.6.js
Line 2605
 
Now if I specify the remote as a string url rathern than an options object it 
seems to work but that doesn't suit my needs.  It appears I SHOULD be able to 
use an options object but it's simply not working.  Am I doing something wrong?
 
James

--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; 
if you are not the addressee please destroy the message and all copies. Any 
opinion or information contained in this email or its attachments that does not 
relate to the business of Kainos 
is personal to the sender and is not given by or endorsed by Kainos. Kainos is 
the trading name of Kainos Software Limited, registered in Northern Ireland 
under company number: NI19370, having its registered offices at: Kainos House, 
4-6 Upper Crescent, Belfast, BT7 1NT, 
Northern Ireland. Registered in the UK for VAT under number: 454598802 and 
registered in Ireland for VAT under number: 9950340E. This email has been 
scanned for all known viruses by MessageLabs but is not guaranteed to be virus 
free; further terms and conditions may be 
found on our website - www.kainos.com 


Reply via email to