Note that there are some explanatory texts on larger screens.

plurals
  1. POXSLT issues with playing Flash in IE and FireFox
    primarykey
    data
    text
    <p>Alright, I am trying to play a flash video in a YUI panel. I was having trouble getting it to work in IE. Fixed it, but then that caused it not to work in FireFox. I have spent HOURS debugging and this is what I found: My XSLT doc is causing the problem! Here it is:</p> <pre><code>&lt;div id="mediaDisplay"&gt; &lt;xsl:if test="//video/videoFile"&gt; &lt;div class="flash" id="flashVid"&gt; &lt;noscript&gt; &lt;object type="application/x-shockwave-flash" data="flash/playerVar1.2.swf" width="525" height="425" id="MediaEmbedObject" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"&gt; &lt;param name="movie" value="flash/playerVar1.2.swf"/&gt; &lt;param name="salign" value="lt"/&gt; &lt;param name="loop" value="false"/&gt; &lt;param name="menu" value="false"/&gt; &lt;param name="allowFullScreen" value="true"/&gt; &lt;param name="AutoPlay" value="true"/&gt; &lt;param name="FlashVars" value="movieSrc={$videouri}"/&gt; &lt;embed AutoPlay="true" src="flash/playerVar1.2.swf" quality="high" name="videogalleryObject" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="525" height="425" id="videogalleryObject" FlashVars="{$videouri}" allowFullScreen="true"&gt; &lt;/embed&gt; &lt;/object&gt; &lt;/noscript&gt; &lt;form action="" name="flashForm"&gt; &lt;fieldset&gt; &lt;input type="hidden" name="flashDivId" value="flashVid"/&gt; &lt;input type="hidden" name="flashWidth" value="525"/&gt; &lt;input type="hidden" name="flashHeight" value="425"/&gt; &lt;input type="hidden" name="flashUrl" value="flash/playerVar1.2.swf"/&gt; &lt;input id="playingFlash" type="hidden" name="FlashVars" value="{$videouri}"/&gt; &lt;input type="hidden" name="flashName" value="Flash"/&gt; &lt;input type="hidden" name="flashAltText" value="{//video/altText}"/&gt; &lt;input type="hidden" name="allowScriptAccess" value="always"/&gt; &lt;input type="hidden" name="allowFullScreen" value="true"/&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/div&gt; &lt;/xsl:if&gt; &lt;/div&gt; </code></pre> <p>Now, the way it is written here it works in FireFox. To make it work in IE the only thing that actually did the trick was removing the <code>data="flash/playerVar1.2.swf"</code> attribute from the <code>&lt;object&gt;</code> tag and and changing it to <code>value="flash/playerVar1.2.swf"</code>. Doing this gets me full functionality in IE, but nothing in FireFox. I'd give you a link to see for yourself but it is still in QA. Does anyone have a way of making this work on across all platforms. Is there a way to run browser detection inline in my XSLT and then give it conditionals? Any and all ideas would be appreciated. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload