My application works in IE only in debug mode (works in other browsers) [closed]
Asked Answered
L

1

10

In Internet Explorer (I tried 9 and 8) my application doesn't work in the normal mode. But when I get to debug mode (press F12), it works with some minor problems (which are irrelevant now).

This makes it impossible for me to debug my application, because in debug mode, it just starts working.

This is the application I developed.

What could be the solution?

Labiate answered 24/5, 2012 at 12:13 Comment(6)
need to know problem, before can find solutionWinonawinonah
the problem is that it doesn't work in Internet ExplorerLabiate
Well on that basis, then the solution is to not use Internet Explorer. My point is, you cant just give us a website link and expect us to test, debug and fix it for you. You need to try and identify the problem (check for javascript errors) and come back with a more specific problemWinonawinonah
@Winonawinonah ok, I just want to have this first clue, I forgot the console.log issue with IE, I really tried for hours to figure it out, but as I said, when I get to debug mode it works, so this confuses me from know the real reason, thx anyway for your commentLabiate
I think this is a real question, and could help future visitors. Should not be closed.Conics
A life saver.. Maybe the question isn't constructed right, but it led me to the solution.Elyssa
A
27

Do you use console.log in your script? In IE browsers console object exists in scope only in debug mode. Change your code to:

if (console) console.log('...')

EDIT: I've looked at your application and you are using console log.

Absence answered 24/5, 2012 at 12:16 Comment(6)
+1 - but have generally found that if (variable) can be problematic, so tend to recommend using if typeof(variable) != "undefined"Adaiha
thanks it worked fine, I will work on minor things now :)Labiate
Thanks for pointing out the issue. I used if(window.console)... if(console) was not working.Muntjac
wow worked for me...saved me a lot of time : )Regulus
wow, what a stupid bug in IEMachismo
Gee, for a question that is too "localized", this really helped me.Guglielma

© 2022 - 2024 — McMap. All rights reserved.