Forum Moderators: open

Message Too Old, No Replies

Fixing the IE Click to Activate update

         

Fotiman

9:26 pm on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The best method I've seen yet is this:

Below your last <object> insert the following JavaScript line which calls iefix.js:

<script type="text/javascript" src="iefix.js"></script>


// iefix.js
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}

I was hoping to improve upon this by adding it to the window.onload event, but it seems that once the page has loaded, this no longer fixes the problem. Does anyone know why?

Fotiman

9:38 pm on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I may have found part of the answer:

Interactive controls loaded from external script files immediately respond to user interaction and do not need to be activated.

I'm guessing that a function assigned to the onload event is probably not seen as being "from external script files", even if the function IS in an external script (because the window.onload event is "internal", if you will. That bites.