Error: Expected identifier, string, or number

Posted on 2008-10-22
Last Modified: 2012-06-27
I'm using a jquery function to create drop down menu.  It works great, expect that in IE7 is gives me an error
Error: Expected identifier, string, or number
Code: 0

The site still works fine, including the drop down menu, and this error only shows up the first time you go to the site.  If you refresh, it no longer shows up.

I've read that this often occurs if there is an extra comma, semi-colon, or parenthesis, but I'm not a javascript wiz, and I can't seem to find any unnecessary code that would cause this.

If you know what is causing my bug or can find in my code, I would be almost grateful to you as I would be if you were throw the people responsible for IE6 and 7 in prison.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link href='' rel='home' title='Clearwater Paper'/>
	<meta content='index,follow' name='robots'/>
	<meta name="keywords" content="potlatch" />
	<meta name="description" content="This is what will show up in search engine results as the description of the site" />
	<meta name="author" content="Clearwater Paper" />
	<script src="" type="text/javascript" charset="utf-8"></script>
	<script src="/assets/scripts/jquerycssmenu.js" type="text/javascript" charset="utf-8"></script>
	<script src="/assets/scripts/init.js" type="text/javascript" charset="utf-8"></script>
	<script src="/assets/scripts/jquery.preload-min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="/assets/scripts/jquery.pngFix.js"></script> 
	<script type="text/javascript"> 
	<link rel="stylesheet" href="/assets/css/main-styles.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="/assets/css/print-styles.css" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="/assets/css/ie-style.css" media="screen" type="text/css" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" href="/assets/css/ie6-style.css" media="screen" type="text/css" /><![endif]-->
	<!-- Analytics -->

Open in new window

Question by:walker6o9
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Expert Comment

ID: 22782404
You list no *working* link to your site javascript, which is where the error is coming from --  So how can we  debug it for you?  Use Firefox, run the error console, it will show where the errors are.
LVL 11

Accepted Solution

MacAnthony earned 500 total points
ID: 22782413
I'm guessing it's an issue from one of the linked javascript files and not this page specifically as there doesn't appear to be any errors. Does it give a filename?

Expert Comment

ID: 22962175
I ahve an issue with java script menu. It gives error "
Line: 102
Char : 20
Error: Expected Identifier

Here is the website URL  When you open load the page, everything is fine.
As soon as you use the drop down menu and pick the link, I see Error "at the bottom left corner of Internet Explorer". It states that "Done, but with erros on page".  It happens to all pages when I open the page using the menu. Can you help? I am attaching webpage code.

Author Comment

ID: 22962566
My problem was that I was using pngFix.  If you are using pngFix, let me know and I can help you.  If not, I'm afraid I cannot help you.

Featured Post

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question ( on how to make a page show some balloons animate up a page…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question