bozlurrahman / swfobject

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

Breaks ExternalInterface in IE due to using outerHTML #639

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use swfobject to embed SWF file
2. Have SWF file do ExternalInterface.objectID, ExternalInterface.call etc.

What is the expected output? What do you see instead?
ExternalInterface should produce the object id/name of the <object>-element or 
calls a JS function. Instead nothing happens in the SWF file, not even an error 
message is generated.

What version of the product are you using? On what operating system?
swfobject 2.2, Windows, IE

Please provide any additional information below.
Apparently this is caused by using el.outerHTML to embed the SWF file, 
replacing this with a document.write() fixes the ExternalInterface access but 
of course changes the semantics of the embedSWF function. No idea right now 
wether there's a way to get both things.

Original issue reported on code.google.com by andreasp...@gmail.com on 30 Jul 2012 at 4:04