problem with & in the code

By liam43, 7 months ago.

The website I have added the code to seems to render '&' as '&' and therefore breaking everything. Is there anyway around this? My code works fine on my local machine. I dont really have much control over the web page I want to add it to. But alternative code would be great.

working code

<script charset='ISO-8859-1' src='AC_RunActiveContent.js' language='javascript'></script><script language='javascript'>
var src = 'wjec2/player';
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0))
src = 'player8';
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', 400, 'height', 340, 'src', src, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', src, 'FlashVars','movie=wjec2/wjec.flv&autoload=off&volume=70');
</script>
<noscript>
<object width='400' height='340' id='flvPlayer'>
<param name='allowFullScreen' value='true'>
<param name='movie' value='wjec2/player.swf?movie=wjec2/wjec.flv&autoload=off&volume=70'>
<embed src='http://fds.oup.com/www.oup.com/oxed-media/oxboxDemo/wjec2/player.swf?movie=wjec2/wjec.flv&autoload=off&volume=70' width='400' height='340' allowFullScreen='true' type='application/x-shockwave-flash'>
</object>
</noscript>

broken code

<script charset='ISO-8859-1' src='AC_RunActiveContent.js' language='javascript'></script><script language='javascript'>
var src = 'wjec2/player';
if(!DetectFlashVer(9, 0, 0) &amp;&amp; DetectFlashVer(8, 0, 0))
src = 'player8';
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', 400, 'height', 340, 'src', src, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', src, 'FlashVars','movie=wjec2/wjec.flv&amp;autoload=off&amp;volume=70');
</script>
<noscript>
<object width='400' height='340' id='flvPlayer'>
<param name='allowFullScreen' value='true'>
<param name='movie' value='wjec2/player.swf?movie=wjec2/wjec.flv&amp;autoload=off&amp;volume=70'>
<embed src='wjec2/player.swf?movie=wjec2/wjec.flv&amp;autoload=off&amp;volume=70' width='400' height='340' allowFullScreen='true' type='application/x-shockwave-flash'>
</object>
</noscript>

Thanks

Liam, there is no way around this. You need the & in the code... there is no alternative way to write the video embed code.

Posted 7 months ago #


RSS feed for this topic

New Topic

You must log in to post.

Copyright Jambo Media, LLC 2009

Powered by WordPress - Created by Tommaso Baldovino