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