Bug Tracker

Opened 15 years ago

Closed 14 years ago

#1874 closed bug (invalid)

.html() bug with inserting SWF in IE

Reported by: frankysanders Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Flash External Interface Cc:
Blocked by: Blocking:


Loading flash swf's has an issue with .html. When loading a swf via {#id}.html('swf') Flash External Interface methods will not initialize properly. This bug only occurs with IE and does not seem to be an issue with Safari or FireFox.

Although {#id}.html('swf') does't work, writing a SWF via id.innerHTML='swf' seems to be fine. I'm not sure what's going on under the hood but I know that this release of jquery has some issues with Active X controls. (Or at least the compressed version did). I've attaced a demo movie illustrating the bug. I am currently trying to come up with a solution but as of yet I have been unable to.

The attached files has an HTML file in it. Try loading the swf via the two links and try writing data from javascript to flash. Only the method which uses innerHTML will work

Attachments (1)

externalInterfaceBug.zip (141.5 KB) - added by frankysanders 15 years ago.
External Interface Test Files

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by frankysanders

Attachment: externalInterfaceBug.zip added

External Interface Test Files

comment:1 Changed 15 years ago by frankysander

Please use a webserver to test these files or neither instance will work.

comment:2 Changed 15 years ago by frankysander

One more thing that I should note: I've made a hack solution,

$("#" + id + "").html(result);
        var v = document.getElementById(id).innerHTML;
        document.getElementById(id).innerHTML = v;

I do not suggest this as a long term solution but it works in the meantime. Also notice that passing in params like flash.swf?param1=value1&param2=value2 works when using innerHTML but using flashparams does not.

ie, <embed flashparams="param1=value1&param2=value2"> will not work. In other words if you want to pass variables to a flash movie, loaded via innerHTML. Then you must use the query string approach or flash will not have the values set inside of the movie.

comment:3 Changed 15 years ago by davidserduke

Summary: .html() bug with IE.html() bug with inserting SWF in IE

comment:4 Changed 14 years ago by dmethvin

Resolution: invalid
Status: newclosed

I think this is the problem you are referring to, related to the EOLAS patent:


Solutions are described there.

Note: See TracTickets for help on using tickets.