I'm trying to dynamically load a swf (Flash) file into a div using innerHTML. 2 versions of IE won't do it properly:
MSIE 6.0 on Windows
MSIE 5.5 on Windows
Both don't load anything...
Does anyone know what on earth could be the problem? It works flawlessly with almost every other browser (including later versions of EI) and on all platforms (Linux, Mac and Windows)!
Please help. I'm inclined to join the anti-IE bandwagon really soon cos this has been driving me nuts!
Here is my code below. Note: other innerHTML calls work fine with both MSIE6.0 and 5.5
Expand|Select|Wrap|Line Numbers
- var swfContent =
- "<object width='245' height='75' id='mySwf'>" +
- "<param name=movie value='mySwf.swf'>" +
- "<param name=quality value=high>" +
- "<param name=wmode value=transparent>" +
- "<embed src='mySwf.swf' quality=high wmode=transparent width='245' height='75' name='mySwf' type='application/x-shockwave-flash'>"+
- "</embed>" +
- "</object>";
- document.getElementById("swfDiv").innerHTML = swfContent;