316 Posts in 85 Topics by 151 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1934 Views |
-
Problem with Javascript in Page.ss

22 February 2009 at 2:40am Last edited: 22 February 2009 2:43am
Hello,
i'am trying to migrate a page with one flv-video embeded into the startpage.
For this reason i created an own startpage.ss and used swfobject.js.Example (in my startpage.ss):
...
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject('player.swf','mpl','470','320','9');
so.addParam('flashvars','&file=test.flv&=/test/test.jpg&controlbar=none');
so.write('player');
</script>
...Even if SS tries to parse the code in my startpage.ss this error occours:
This page contains the following errors:
error on line 76 at column 36: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.The problem starts in:
&file=test.flv&=/test/test.jpg&controlbar=none
While SS is parsing my startpage.ss the &-chars result in a parsing problem.
Could anyone help me?
-
Re: Problem with Javascript in Page.ss

24 February 2009 at 9:27am
I think you need to change the & to & to pass XML validation
| 1934 Views | ||
|
Page:
1
|
Go to Top |


