problem solved

Jörn has a new version 1.5.1 of jquery.validate.js

So for anyone who stumbles upon this you CANNOT run

jquery.validate.js
$Id: jquery.validate.js 5952 2008-11-25 19:12:30Z

with
jQuery 1.2.6
$Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
$Rev: 5685 $

you MUST upgrade to the following
jquery.validate.js
$Id: jquery.validate.js 6096 2009-01-12 14:12:04Z

with jquery 1.3.1
Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009)
Revision: 6158

On Mar 4, 1:14 pm, James <james.gp....@gmail.com> wrote:
> The part:
> [Exception... "'Syntax error, unrecognized expression:
> [...@for='license']' when calling method:
>
> tells you that somewhere in your code you have the expression
> [...@for='license']' that is unrecognized.
> Remove the @ sign as that is no longer valid from jQuery 1.3.
> Make sure you have the latest version of Validate plug-in also that
> supports jQuery 1.3.
>
> On Mar 3, 7:17 pm, "wwor...@gmail.com" <wwor...@gmail.com> wrote:
>
>
>
> > Hi everyone, i'm getting a weird exception with 1.3.1 please see the
> > video link to watch what happens.
>
> >http://screencast.com/t/4Ih9rhKwZP
>
> > and if you don't watch the video i'm doing an ajax submit but it's
> > refreshing the page and throwing the error
>
> > exception:
> > [Exception... "'Syntax error, unrecognized expression:
> > [...@for='license']' when calling method:
> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
> > (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
>
> > jquery
> >         var container = $('div.container');
> >         $('#addlicense').validate({
> >                         submitHandler: function() {
> >                                 $.ajax({
> >                                   type: 'POST',
> >                                   url: 'process.php?cmd=addlicense',
> >                                   dataType: 'html',
> >                                   data: { issuedby: $('#issuedby').val(), 
> > license: $
> > ('#license').val(), licensenum: $('#licensenum').val(), issueddate: $
> > ('#issueddate').val(), expiredate: $('#expiredate').val(), licenseid: $
> > ('#licenseid').val(), action: $('#action').val(), noexpire: $("input
> > [name='noexpire']:checked").val() },
> >                                   success: function(data){
> >                                     $('#licenseresult').prepend(data);
> >                                   },
> >                                   error: function(){
> >                                     alert("An error has occurred. Please 
> > try again.");
> >                                   },
> >                                   complete: function() {
> >                                     $('#results').fadeIn('slow');
> >                                     $('#licensenew').colorBlend([{ 
> > fromColor: '#F3F3F3', toColor:
> > '#33CC33', param: 'backgroundColor', cycles: 1 }]);
> >                                     $("#addlicense").slideUp();
> >                                     $("#nolicense").hide();
> >                                     $("#licensectr").show();
> >                                   }
> >                                 });
> >                                 return false;
> >                         },
> >                         errorContainer: container,
> >                         errorLabelContainer: $("ul", container),
> >                         wrapper: 'li',
> >                         meta: "validate",
> >                         rules: {
> >                                 license: {
> >                                         required: true
> >                                 },
> >                                 licensenum: {
> >                                         required: true
> >                                 },
> >                                 issuedby: {
> >                                         required: true
> >                                 },
> >                                 issueddate: {
> >                                         required: true
> >                                 },
> >                                 expiredate: {
> >                                         required: {
> >                                                 required: true,
> >                                                 depends: function(element) {
> >                                                         return 
> > $("#noexpire:checked")
> >                                                 }
> >                                         }
> >                                 }
> >                         },
> >                         messages: {
> >                                 license: {
> >                                         required: "License Name Description 
> > is required"
> >                                 },
> >                                 licensenum: {
> >                                         required: "License number ID is 
> > required"
> >                                 },
> >                                 issuedby: {
> >                                         required: "Issued by is required"
> >                                 },
> >                                 issueddate: {
> >                                         required: "Date Issued is required"
> >                                 },
> >                                 expiredate: {
> >                                         required: "Expires On is required"
> >                                 }
> >                         }
> >         });- Hide quoted text -
>
> - Show quoted text -

Reply via email to