Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE 9 and IE 10 cannot enter text into input text boxes from time to time

There is a web page with an iframe inside. Sometimes, Input text box controls, inside the iframe, are locked/ freezed. Users cannot enter text into them. But the text box can be focused and not faded. There is no code to disable the input controls and this does not always happen. Up until now, this is happening only in IE 9 and IE 10. Firefox and Chrome is OK.

Brief description of how the page works is:

  • There is a button on the parent page. By clicking it will build an iframe from scratch and show it. This is done by Javascript.

  • Again, there is a button on the iframe to close it. By clicking it
    will remove the iframe from the parent page's DOM.

Please let me know if you want further information as required. Thanks in advance.

like image 578
Pyae Phyo Aung Avatar asked Oct 03 '13 02:10

Pyae Phyo Aung


People also ask

Does IE still work after June 2022?

This is a reminder that Microsoft plans to retire and end support for the Internet Explorer 11 (IE11) desktop application on most versions of Windows 10 on June 15, 2022.

Why can't I type in a text box?

All you have to do is click inside the type box, press the Windows key twice and start typing. If the method is successful, you should be able to type normally. Update: Another temporary solution that some users have discovered is to minimize and maximize the browser window in one or two quick successions.

Why has IE stopped working?

Internet Explorer has stopped working: Microsoft retires browser after 27 years. Microsoft's Internet Explorer, which once dominated the browser wars, is now in tech retirement. After 27 years, Microsoft is replacing it for good with its Microsoft Edge browser, which it claims is faster and safer.

How long is IE mode in EDGE supported?

Microsoft is committed to supporting Internet Explorer mode in Microsoft Edge through at least 2029, on supported operating systems. Additionally, Microsoft will provide a minimum of one year notice prior to end of support for IE mode.


1 Answers

This bug is very annoying, even worse there was very few informations we could find on google.

There is only one link from Microsoft that about IE9, but problem still exists in IE10 / IE11 and much easier to reproduce.

I have just create a fiddle to describe this problem

http://jsfiddle.net/WilliamLeung/T3JP9/1/

Why it is so hard for M$ to fix this issue for years?

there should be three workarounds

  1. Reset the focus every time we modify the DOM with iframe
  2. or schedule a "do nothing" time consuming task, which may make IE response to mouse event magically, I could not tell you why, maybe M$ could

    The sample codes which setup a time consuming task

    setInterval(function () {     var loopCount = 10000;     var x = 0;     for (var i = 0; i < loopCount; i++) {         x = (x + Math.random() * 1000) >>> 0;     }     return x; }, 1000); 
  3. or reset the DOM content before remove it from document

    someDivWithIframe.innerHTML = ""; $(someDivWithIframe).remove(); 

    I am not sure if it helps for all cases, you should have a tried

like image 129
William Leung Avatar answered Sep 20 '22 22:09

William Leung