Archive

Posts Tagged ‘setTimeOut’

iframe bug in IE 8

April 15th, 2009

Hi,

During testing of TWG with IE 8 I have found out that there is a bug in IE 8 if you want to show a hidden iframe with the Javascript function setTimeOut.  The iframe is shown but without any text.

In TWG I showed the iframes 200 ms after clicking to load the page in background. I had to change the implementation to make this work with IE 8 in all modes as well.

For example:

window.setTimeout(’document.getElementById(”details”).style.visibility = “visible”‘,600);

does not work properly in IE8 while

document.getElementById(”details”).style.visibility = “visible”;

does.

I have integrated this change already in TWG 1.7.7 and hope this helps anyone who runs into this problem.

- Michael

Author: TinyWebGallery Categories: TinyWebGallery Tags: , ,