IE6 JavaScript error: “Expected identifier, string, or number”

Note to self: if your code works in FF, but  you get the “Expected identifier, string, or number” error in IE6, this is probably caused by having a list with a comma after the last item. Remove the extraneous comma, and it should work.

About these ads

6 Responses to IE6 JavaScript error: “Expected identifier, string, or number”

  1. Levi says:

    This is one of those maddening errors that pop up from time to time. I find the easiest way to find the problem character is to use Firebug Lite http://getfirebug.com/lite.html

  2. Josh Justice says:

    Levi, that’s great advice. I will definitely check it out.

  3. kjarsenal says:

    thanks josh. can’t believe i’m coding to support that pos ie6 crapware!

  4. fregs says:

    Ohhh, thanks mate!! you saved me a lot of time…

  5. bob says:

    Fantastic help, a real time saver.

  6. thelonious says:

    thanks!!! it was my exact problem. stupid ie6!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 525 other followers

%d bloggers like this: