Thanks Aran,

I guess innerHTML is not a reliable way to get all the PARAMs of a
flash object. I appreciate the help.

On May 1, 9:33 pm, "Aran Rhee" <[email protected]> wrote:
> Ok, so a few things:
>
> 1) you should place your embedSWF() code in the <head> of the document, as
> all SWFObject 2.x code executes on the DOM Ready event. The old SWFObject
> 1.x notaqtion was to write your script blocks inline where you wanted the
> content to appear, but this is no longer the case.
>
> 2) you should not set a blank id/name in the attributes object. If you don't
> need to change the name, then just don't specify anything in the attributes
> object, otherwise what you actually end up with is a dom element with no ID
> (which is bad)! The flash item will automatically inherit the div id on
> replacement.
>
> (from firebug or IE webdev toolbar with your current code)
>
> <object id="" height="560" width="725" align="middle"
> type="application/x-shockwave-flash" name=""
> data="/monetarypolicy/FRBLineCharts.swf">
> <param name="quality" value="high"/>
> <param name="bgcolor" value="#ffffff"/>
> <param name="allowscriptaccess" value="sameDomain"/>
> <param name="flashvars"
> value="chartIndex=0&xmlPath=%2Fmonetarypolicy%2Frbstdata.xml&descriptionsXml
> Path=%2Fmonetarypolicy%2Frbstdescriptions.xml"/>
> </object>
>
> 3) The javascript function you are using to grab page content could
> potentially be at fault (I guess what I saying here is that SWFObject has
> done its job to embed the content on the page correctly, and something after
> the fact is not working as it should). The function is grabbing page content
> with innerHTML.
>
> It seems to be that innerHTML does not grab what you think it should in IE.
>
> Here is what I get with innerHTMl in FF:
> <param value="high" name="quality"><param value="#ffffff"
> name="bgcolor"><param value="sameDomain" name="allowscriptaccess"><param
> value="chartIndex=0&amp;xmlPath=%2Fmonetarypolicy%2Frbstdata.xml&amp;descrip
> tionsXmlPath=%2Fmonetarypolicy%2Frbstdescriptions.xml" name="flashvars">
>
> And the same in IE:
> <PARAM NAME="_cx" VALUE="19182"><PARAM NAME="_cy" VALUE="14816"><PARAM
> NAME="FlashVars" VALUE=""><PARAM NAME="Movie"
> VALUE="/monetarypolicy/FRBLineCharts.swf"><PARAM NAME="Src"
> VALUE="/monetarypolicy/FRBLineCharts.swf"><PARAM NAME="WMode"
> VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop"
> VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign"
> VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM
> NAME="AllowScriptAccess" VALUE="sameDomain"><PARAM NAME="Scale"
> VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie"
> VALUE="0"><PARAM NAME="BGColor" VALUE="FFFFFF"><PARAM NAME="SWRemote"
> VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing"
> VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress"
> VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking"
> VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
>
> I think you might need to grab the content of the flash Object differently
> (or rebuild it on the print page with SWFObject)
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of jonny momo
> Sent: Saturday, 2 May 2009 2:31 AM
> To: SWFObject
> Subject: Re: empty flashvars in <PARAM NAME="FlashVars" VALUE=""> tag with
> swfObject 2.1
>
> The link is 
> athttp://www.federalreserve.gov/monetarypolicy/bst_recenttrends.htm
> but you will not be able to get an error at this time as there are
> some band-aids in place to make things work correctly. However, you
> will be able to see what i am talking about if you follow these steps
> and compare what happens in IE (at least IE6) and FireFox.
>
> 1. Openhttp://www.federalreserve.gov/monetarypolicy/bst_recenttrends.htm
> - view the source to see the swfObject implementation
> 2. Hit the 'Print' button on the upper left of the host page
> 3. View the source of the 'printable' page
>
> The print function takes the contents of the first page, stripping out
> scripting and some styles, and creates the contents of the pop up
> javascript window. You'll notice that the <OBJECT> tag in the print
> version in IE does not have any FlashVars. In FF, it does.
>
> The flashvars are used to tell the swf where to get its data. However,
> at this time, if there are no FlashVars, the swf defaults to the same
> location, making it less than reusable for any real alternative
> purpose.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to