Hi all,
Not sure whether this is a javascript or MySql issue.
Have below javascript code of embedded flash player stored in text field in MySql, with php reading it into a variable and echoing it, however no player shows.
Code is seen when a view source of page is done, so it's reading it out ok. Am I missing escape characters or something else completely?
Code runs ok in a normal html page.
thx in advance
[CODE=html]<script type="text/javascript" src="http://www.sitename.co m/video/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http ://www.sitename.co m/video/flvplayer.swf", "player","400", "300","9");
s1.addParam("al lowfullscreen", "true");
s1.addParam("al lowscriptaccess ","always") ;
s1.addParam("fl ashvars","file= http://external-site.com/video.flv");
s1.write("previ ew");
</script>[/CODE]
Not sure whether this is a javascript or MySql issue.
Have below javascript code of embedded flash player stored in text field in MySql, with php reading it into a variable and echoing it, however no player shows.
Code is seen when a view source of page is done, so it's reading it out ok. Am I missing escape characters or something else completely?
Code runs ok in a normal html page.
thx in advance
[CODE=html]<script type="text/javascript" src="http://www.sitename.co m/video/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http ://www.sitename.co m/video/flvplayer.swf", "player","400", "300","9");
s1.addParam("al lowfullscreen", "true");
s1.addParam("al lowscriptaccess ","always") ;
s1.addParam("fl ashvars","file= http://external-site.com/video.flv");
s1.write("previ ew");
</script>[/CODE]
Comment