Web Development: Flash and the "Press OK to continue loading this page" message

by Stephen Horsfield 28. January 2008 11:18

Overview

Having added Flash content support to a website, I was getting this message in Internet Explorer 6.  Internet Explorer 7 and FireFox both worked without any problems.  I knew about the issue of Active Content and Internet Explorer 7, but I didn't know what was causing this problem in IE6.

Solution

It turns out that the message is caused by exactly the same behaviour that causes the infamous "click here to use this control" message in Internet Explorer 7.  See this article:

I was already using a script to generate the <object> tag source, and was using inline script to change the content of the page, depending on whether an appropriate version of Flash had been detected.  However, I was caught out by this inline script line:

flashElement.innerHTML = GenerateFlashElement(...);

The above article comments that the code that adds the <object> tag must be in a separate included JavaScript file, not in inline script.  So, all I had to do was replace the code with a method call and pass the tag content and the containing item to the script:

InsertFlashObject(flashElement, GenerateFlashElement(...));

--- flashHelper.js
function InsertFlashObject(element, innerHTML) {
  element.innerHTML = innerHTML;
}

This solved the problem immediately.

Versions

  • Microsoft Internet Explorer 7
  • Microsoft Internet Explorer 6
  • Adobe Flash 9
  • Windows XP

Metadata

Tags:

Software Development | Windows XP

Comments

4/28/2008 3:09:16 PM #

For those of you using MultipleIE, this problem appears to continue.  Make sure you check your websites using a standard installation of Internet Explorer 6 with recent updates.

Stephen Horsfield |

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar