[Flashjs] Inserting Flash modules using innerHTML in IE6?

Geoff Stearns geoff at deconcept.com
Fri May 4 13:32:51 EDT 2007


ie has memory handling issues when you use js to insert/remove obejct 
tags - it doesn't clean them up properly unless you use a bunch of extra 
code to manually remove them and all the js associated with it (it's 
complicated).

your best bet would be to just use an iframe or something with the 
object/embed tags inside there.



Miller, Travis wrote:
> Hi all -
>
> I have a <div> that contains a visual aid for a web-based instructional
> system. As the user advances through a lesson, different visual aids
> need to be displayed, so I'm using the <div>'s innerHTML property to
> swap in a new image or Flash module as necessary
>
> This works beautifully in Firefox 2. IE6 displays images fine, but it
> doesn't display any Flash modules that are inserted in this manner. I
> just get an empty <div>.
>
> I tried placing the <object> and <embed> tags directly on the page, and
> it works fine. It's only when they're inserted using innerHTML that IE
> refuses to display them.
>  
> Has anyone run into this before? I know it's *possible* to insert Flash
> into a document in this way in IE6 - because I came across a couple of
> web pages talking about it - but I can't figure out why it's not working
> for me.
>
> Travis Miller
> PHP Programmer
> tmiller at fsiholding.com
> x18741
>  
>
>
> _______________________________________________
> Flashjs mailing list
> Flashjs at osflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>   



More information about the Flashjs mailing list