IndiePaivaGame / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWF never loads in IE7 using embedSWF on a dynamically created element #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Dynamically create an element using document.createElement and give it an id
2. Use embedSWF using that id
3. Works in all browsers but IE7

What is the expected output? What do you see instead?
I expect it to work. The object gets created in the dom but never loads the
swf, and fiddler does not show the swf being downloaded at all. If you
right click the area the swf should be you see the "Movie not loaded"
message in the flash context menu. Also the loading indicator in the tab is
spinning, but still fiddler never shows a request for the swf.

What version of the product are you using? On what operating system?
The latest swfobject release, tested under XP with IE7, FF3 and Safari

Please provide any additional information below.
No examples show embedSWF being used this way but I need this functionality
as I am developing a third party script for an ad campaign that will load
the swf dynamically in a positioned div after a user clicks on an image. I
will not be able to provide my code for review. I have attempted using a
timeout to delay the embedswf from running for a little while after the
container it attached to the end of the body.

Original issue reported on code.google.com by chadl...@gmail.com on 9 Oct 2008 at 3:00

GoogleCodeExporter commented 9 years ago
I determined that the issue actually had to do with using the crunched 
compressed
version of swfobject. It seemed to not be performing the browser detection 
correctly.
So, upon use of the full source version I was able to get it working as 
expected.

Original comment by chadl...@gmail.com on 9 Oct 2008 at 7:18

GoogleCodeExporter commented 9 years ago

Original comment by bobbyvandersluis on 9 Oct 2008 at 8:09