By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

Javascript error in IE

P: 347
I cant figure our why my site has pages that generate a Javascript error on a page but when the page is refreshed the error dissapears

any of the individual persons pages on the site generate this error but i cant figure out why

Can anyone help????
Nov 19 '08 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 5K+
P: 8,639
what is the error actually (I don't have IE, so I can't tell)?

though not IE related, but "../deluxe-menu.files/dmenu.js" is not a javascript file.
all ; in the conditional comment JS are missing.

Nov 19 '08 #2

P: 347
Hi it just says syntax error on line 2 character 1 code 0

hope that helps tried putting the missing ; in the statement and that did not help
Nov 19 '08 #3

P: 347
Hi thatnks for your help, making me look at the javascript line helped it should not have pointed to ../deluxe-menu.files should have just been deluxe-menu.files

that has cured the problem

Thanks again
Nov 19 '08 #4

Expert Mod 5K+
P: 8,639
got it through Firefox' "Error Panel" (or whatever it is called in english...)

tried putting the missing ; in the statement and that did not help
it's generally considered "good coding practice" to finish each command with a ;. other programming languages will throw an error if the closing semi-colon is missing. btw. enclosing single line code blocks in { } is not necessary, but it can improve readability.
Nov 19 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.