> >       $.get("parser.php",
> >       {
> >         type: type,
> >         user: user,
> >       }, 

> trailing commas only work in firefox!
>      user: user,
> 
> has a trailing comma!

Great catch, Jake.

Here's a tip - use ActiveState Komodo for your JavaScript editing, and get
syntax checking as you edit. I loaded the code into Komodo, and it flagged
the "user: user," line with a green squiggly underline and this message:

Strict warning: trailing comma is not legal in ECMA-262 object initializers

And had I tried this before my first reply, I wouldn't have said it was
impossible to tell what was wrong from the JavaScript code alone... :-)

As of version 4.0, Komodo Edit (no debugger, but all the editor features) is
free - and it runs on Mac, Windows, and Linux.

By far my favorite editor for JavaScript, Ruby, Python, and PHP.

http://www.activestate.com/products/komodo_edit/

http://www.activestate.com/products/komodo_ide/

-Mike


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to