0

I have written javascript by using Alloy UI and jquery it is working fine in firefox, chrome and IE 10,11 but IE 9 its not work.

when I open console for debug it working fine.

Marco Mercuri
  • 1,117
  • 9
  • 17
Sanjeetjh
  • 31
  • 2
  • 13
  • 1
    check for console errors. may be you are using `console.log()` and it is only activated when console is open in some specific versions of IE. – Jai Feb 27 '15 at 11:30

1 Answers1

2

You probably use console.log in the code. IE do not have the console object. This object exists only when console is open.

try writing (at the begginig of the page/scripts)

if (typeof(console) == 'undefined') console = { log: function () {} };
Seti
  • 2,169
  • 16
  • 26