Ie Error Expected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the object expected error in internet explorer 8 company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions typeerror object expected angularjs Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million
Object Expected Ie8
programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cryptic javascript error in Internet Explorer 7/8: ':' expected up vote 2 down vote favorite On one of our sites we
Object Expected Error In Javascript
get a very cryptic JS error from the Internet Explorer. In the console it says: ':' expected javascript:false, Line 1 Character 24 When I click on the error to see which JS is causing the error a message pops up: "For this error no source is available". So I really can't tell you where this comes from. This is extremely cryptic to me. Does anyone know what could cause this? javascript internet-explorer share|improve script5007 object expected this question asked Jan 24 '12 at 16:55 Florian Rachor 1,050520 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote accepted That's probably from an incorrect object literal. For example: var foo = {bar}; ... gives exactly the error you describe in IE 7 and 8. share|improve this answer answered Jan 24 '12 at 17:01 Tim Down 193k42309393 You were right, I had some AddThis code on the site which says: {title}: {url} and that caused the problem. Thanks a lot! –Florian Rachor Jan 24 '12 at 17:12 add a comment| up vote 1 down vote At a guess, a malformed object literal. Something like { foo bar } which should be { foo: bar }. share|improve this answer answered Jan 24 '12 at 17:00 Rob Agar 7,81412749 add a comment| up vote 1 down vote The places it would expect a colon are: Object literal e.g. var obj = {foo: bar}; Ternary operator e.g. var str = (i === 0 ? "yes" : "no"); Switch case statement That could help you narrow it down. However, I suspect since you seem to indicate that the problem is only in IE that it is due to automatic semicolon insertion. For that I would run the scripts through JSLint to help find and corre
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Message: Object Expected
Learn more about Stack Overflow the company Business Learn more about hiring developers jquery object expected or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack object expected error in javascript in ie8 Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Debug IE error Object expected [closed] up http://stackoverflow.com/questions/8990801/cryptic-javascript-error-in-internet-explorer-7-8-expected vote 2 down vote favorite I am trying to debug this error but it does not give me enough info ti figure it out? or does it??? http://c5beta.dealercontrol.net/inventory/1-2l1305517101/Mercedes-Benz_E-Class_E350_White_2010#request-info Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C) Timestamp: Fri, 3 Jun 2011 20:53:11 UTC Message: Object expected http://stackoverflow.com/questions/6232596/debug-ie-error-object-expected Line: 1 Char: 1 Code: 0 URI: http://c5beta.dealercontrol.net/inventory/1-2l1305517101/Mercedes-Benz_E-Class_E350_White_2010 Message: Object expected Line: 1 Char: 1 Code: 0 URI: Message: Object expected Line: 1 Char: 1 Code: 0 URI: Message: Object expected Line: 1 Char: 1 Code: 0 URI: javascript object object-expected share|improve this question edited Jun 3 '11 at 21:33 Ibu 24k64272 asked Jun 3 '11 at 20:56 user782993 25124 closed as off-topic by Undo♦, Louis, bjb568, bummi, Kevin Brown Feb 3 '15 at 17:23 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Undo, Louis, bjb568, bummi, Kevin BrownIf this question can be reworded to fit the rules in the help center, please edit the question. Please post the relevant code here rather than linking out to full web pages. –Michael Berkowski Jun 3 '11 at 20:59 add a comment| 3 Answers 3 active o
be down. Please try the request again. Your cache administrator is webmaster. Generated Tue, 18 Oct 2016 18:51:55 GMT by s_wx1202 (squid/3.5.20)