Dave. So it sounds like if you have client-side changing of DOM elements, you may want to look at dynamic publishing rather than static. This way you can write content into a DOM element when you need to rather than on page creation.
I will also point you to this tut which talks about the steps to replace content on the page with swfobject (and the extra steps to replace a swf with aanother swf etc) http://pipwerks.com/lab/swfobject/load-onclick/2.0/index.html Cheers, Aran On Wed, Oct 7, 2009 at 8:33 PM, kbmaniac <[email protected]> wrote: > > Hi, > > New to swfobj, I have a project where I need to change page content > with innerHTML, one of the content items swapped in is a swf. I used > to use > > '<object ' + > 'CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + > 'width="100%" ' + > 'height="100%" ' + > 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ > swflash.cab" id=movie_obj> ' + .... > > and all was well, except for IE8. So swfobj was suggested :) > > In my index.html I have ... > ... > <script type="text/javascript" src="swfobject.js"></script> > > <script type="text/javascript"> > > swfobject.registerObject("movie_obj", "9.0.0", > "expressInstall.swf"); > > </script> > > </head> > > And my swapped in HTML via innerHTML ... > > '<div>' + > '<object > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > width="800" height="600" id="movie_obj">' + > '<param name="movie" value="' + name + '" />' + > '<!--[if !IE]>-->' + > '<object type="application/x-shockwave-flash" data="' + > name + > '" width="800" height="600">' + > '<!--<![endif]-->' + > '<a href=" > http://www.adobe.com/go/getflashplayer">' + > '<img src=" > http://www.adobe.com/images/shared/download_buttons/ > get_flash_player.gif" alt="Get Adobe Flash player" />' + > '</a>' + > '<!--[if !IE]>-->' + > '</object>' + > '<!--<![endif]-->' + > '</object>' + > '</div>' > > From the auto code generator, when executed I get a 800 x 600 block > (well scroll bars) and nothing playing. I am concerned that I have ... > swfobject.registerObject("movie_obj", "9.0.0", "expressInstall.swf"); > in the <head> before 'movie_obj' has been 'swapped in. > > Any advice greatly appreciated > > Cheers > > Dave > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
