setInterval and setTimeout stops when IE About or Internet options dialog is open RRS feed

  • Question

  • My Javascript code does something (like update UI) every 3 seconds. The code is shown below using window.setInterval function. In IE (regardless which version) browser, if I open Help->About dialog, or Toos->Internet options dialog, the timer callback stops being called until I close the dialog.  I tried window.setTimeout function with the same result in IE.

    I don't have this problem in Firefox when I open Help->About dialog while the script is running.

    Has anyone encounter this problem in IE? What is the workaround then? Thanks.

       // do something, such as
    }, 3000);

    Wednesday, July 30, 2014 2:14 AM

All replies

  • That is how most Windows Program's work. The menu or dialog manager takes over the application. If they are running then no code in your app is. For dialogs they are modal or modeless, the programmer decides. Most dialogs will be modal (but Find etc will be modeless).

    PS IE doesn't use Windows Menus (it uses system toolbars that look like menus).

    David Candy

    Tuesday, August 5, 2014 10:28 AM