Unfortunately, I don't have an example of this online.

item(0) is actually all the code between the body tags on the html
page, so yes, it does contain the SWF object code.

but '.innerHTML+= ' is just adding some stuff to the END of the page
(right before the /body tag.) It's not removing or changing any
existing code.

And as I said... it's weird that it works fine in FireFox. (Actually,
the SWFobject disappears for a second, but then comes back.)

so odd.



On Mar 23, 1:56 pm, "Getify Solutions, Inc." <get...@gmail.com> wrote:
> Is the item you are targetting to add content to the actual swf object
> itself?  In other words, is item(0) the same thing as your SWF?  If so, I
> don't think you should try to append additional html inside it. You should
> add to some other normal DOM container (div, span, etc).
>
> Do you have a link we could look at?
>
> --Kyle
>
> --------------------------------------------------
> From: "Chenzo" <chenzor...@gmail.com>
> Sent: Monday, March 23, 2009 12:41 PM
> To: "SWFObject" <swfobject@googlegroups.com>
> Subject: swfObject 1.5 + IE (6, 7 and 8) and innerHTML
>
>
>
> > I'm seeing a strange behaviour with my SWFobject.
>
> > I've got a flash .swf on the page using swfobject 1.5 - it works fine.
>
> > Then a user clicks a link that fires a JS script. Kinda like this
> > below:
>
> > theLayerCode += "<b>This is only a test</b>";
> > document.getElementsByTagName('body').item(0).innerHTML+=theLayerCode;
>
> > In FF, those lines just add 'this is only a test' to the bottom.
>
> > In IE, those lines add 'this is only a test' to the bottom but the SWF
> > object disappears.
>
> > Anyone have any ideas why this is happening or have any work-arounds
> > or solutions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to swfobject@googlegroups.com
To unsubscribe from this group, send email to 
swfobject+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to