[Flashjs] Inserting Flash modules using innerHTML in IE6?
Miller, Travis
tmiller at fsiholding.com
Tue May 8 17:34:30 EDT 2007
Cool - thanks for the tip, Geoff. I ended up just including all the
<object> tags directly in the page, and using the style.display property
to hide or show them as needed.
I swear, IE6 is even more of a thorn in my side than Netscape 4 was back
in the day...and that's saying a lot :)
Travis Miller
PHP Programmer
tmiller at fsiholding.com
x18741
-----Original Message-----
From: Flashjs-bounces at osflash.org [mailto:Flashjs-bounces at osflash.org]
On Behalf Of Geoff Stearns
Sent: Friday, May 04, 2007 1:33 PM
To: Flashjs at osflash.org
Subject: Re: [Flashjs] Inserting Flash modules using innerHTML in IE6?
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
>
_______________________________________________
Flashjs mailing list
Flashjs at osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
More information about the Flashjs
mailing list