[Flashjs] Inserting Flash modules using innerHTML in IE6?

Miller, Travis tmiller at fsiholding.com
Fri May 4 12:14:03 EDT 2007


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
 




More information about the Flashjs mailing list