View Full Version : Application halts if writing to IE console.

27 Aug 2012, 9:42 PM
My application stops working and displays the loading sign i have used in it, if i try writing to IE console without opening it using F12.
Once i open the console it runs fine. I have a check in my Log.js as (console && !Ext.isIE) for non IE browsers but i can't figure out what to do for IE ? Is there any other way to write to IE console without opening it ?

27 Aug 2012, 11:25 PM
confirmed , also see it . Program stop working with an example I have.

if (window.console && console.clear)

if (window.console && console.log)
console.log("core: %s, extjs: %s", Ext.versions.core.version, Ext.versions.extjs.version);

removing the if condition stops execution until the console is openened.

You can try to make an empty function of it, when the console is not open at the top of your program.

!window.console && (window.console = {} && window.console.log = function () {});

See http://stackoverflow.com/questions/3326650/console-is-undefined-error-for-internet-explorer