[jQuery] Re: [validate] Remote Call Failing

2008-12-15 Thread James Hughes

Ah.  I thought i was.  That explains it! 
 
Thanks for the response
 
James.
 
 


From: jquery-en@googlegroups.com on behalf of Jörn Zaefferer
Sent: Mon 15/12/2008 12:44
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [validate] Remote Call Failing



Updating to 1.5 should fix the issue.

Jörn

On Mon, Dec 15, 2008 at 11:14 AM, James Hughes  wrote:
>
> 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 




[jQuery] Re: [validate] Remote Call Failing

2008-12-15 Thread Jörn Zaefferer
Updating to 1.5 should fix the issue.

Jörn

On Mon, Dec 15, 2008 at 11:14 AM, James Hughes  wrote:
>
> 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
>
>
>