The document element is returning NULL. This is an error message I am seeing in the Javascript Error console that I believe ships with FF. This means that document.getElementById is failing; likely because the page hasn't loaded fully to instantiate the div, or there's a typo somewhere between where you define your pagetitle div and when the flashembed js gets executed.
What you need to do is wrap this code in a domready event. If you can put it in the <head></head> then that would work, or if you have access to a library like jQuery where there is an onDomReady kind of event you can plug into, that should solve your issue. At least on the page you linked to me. Vincent On Wed, Jul 22, 2009 at 1:07 PM, Chris <[email protected]> wrote: > > > Vincent, > > I replaced the flashvar with a string literal: > flashvars.parentXML = "String Literal"; > > and my .swf file is currently pulling from internal variables only > (not using the parentXML flashvar). > > So the only thing that affects whether swfobject embeds my file or not > is that very first line (and it dies as soon as I add .innerHTML > or .toString() or .value) > > I just posted the files. You can look at them here: > > http://homepage.mac.com/hisandheranderson/AaronHartmanMD/interiorSample.html > > thanks for your help, > chris > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
