Getting Rhythmyx to Output Flash...

Hi All,

We’re trying to create a new Image variant to allow us to output flash on our websites.

The existing variant outputs using the old OBJECT and EMBED tags which fails XHTML validation and causes problems with regard to drop-down navigation.

We’re trying to make the variant output the following kind of markup…


<div class="flash" id="f236545">
<script type="text/javascript" src="/static/j/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/i/home-bnr.swf", "f236545", "940", "143", "8", "#000");
so.addParam("wmode", "transparent");
so.write("f236545");
</script>                 
</div>

Where:
[ul]
[li]DIV ID ( f236545 ) is the contentID prefixed with the letter f
[/li][li]940 is the width of the .swf in pixels
[/li][li]143 is the height of the .swf in pixels
[/li][li]All other variables can be hardcoded
[/li][/ul]

However all of the javascript statements between the <script> tags are being omitted when the page is previewed or published.

Is there a way around this? Possibly by escaping the variables or javascript statements?

What version of Rx are you using and what patch level are you on (log into the Cx > Help > About)?

Try putting a simicolon between the opening and closing script tags ( “;” ).

Cheers, we will try that. :cool:
Version 6.5.2
Build 200710P01 (3276) [RX-14841]