Bug Tracker

Modify

Ticket #1874 (closed bug: invalid)

Opened 6 years ago

Last modified 5 years ago

.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:
Blocking: Blocked by:

Description

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

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

Change History

Changed 6 years ago by frankysanders

External Interface Test Files

comment:1 Changed 6 years ago by frankysander

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

comment:2 Changed 6 years ago by frankysander

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

$("#" + id + "").html(result);
    if($.browser.msie){
        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 6 years ago by davidserduke

  • Summary changed from .html() bug with IE to .html() bug with inserting SWF in IE

comment:4 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

 http://activecontent.blogspot.com/

Solutions are described there.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.