IE hates it for good reason. Proper JSON  (and Javascript object
declaration) has no  trailing comma on the final line.
This is one thing IE does right that the other browsers are too giving
on.

On Oct 28, 5:57 pm, JCQ <[EMAIL PROTECTED]> wrote:
> I agree with Tim, that is EXACTLY the problem.  IE seems to hate any
> trailing commas in that json-ish type of  data structure, sometimes
> it's called a syntax error, and once in a while I'll also get a
> message like "no object detected" or somesuch.  Anyway, kill that
> trailing comma Tim mentioned and it will be fine.
>
> On Oct 28, 5:48 pm, tpb976 <[EMAIL PROTECTED]> wrote:
>
> > The problem might be that there is a "," after the line "email:
> > "Please enter a valid email address"".
>
> > Try removing the comma and see what happens.
>
> > -Tim
>
> > On Oct 28, 1:10 pm, MauiMan2 <[EMAIL PROTECTED]> wrote:
>
> > > IE7 is telling me the following script has a syntax error and I have
> > > tried to find it but haven't located it . . . yet:
>
> > > (function($){
> > >         $().ready(function() {
> > >                 // validate the comment form when it is submitted
> > >                 $("#commentForm").validate();
>
> > >                 // validate signup form on keyup and submit
> > >                 $("#signupForm").validate({
> > >                         rules: {
> > >                                 email: {
> > >                                         required: true,
> > >                                         email: true
> > >                                 },
> > >                         },
> > >                         messages: {
> > >                                 email: "Please enter a valid email 
> > > address",
> > >                         }
> > >                 });
> > >         });
>
> > > })(jQuery);
>
> > > I'm going to keep looking but maybe somebody else will be able to find
> > > it before me. Firefox doesn't seem to have a problem with it.

Reply via email to