Hi
I've run into a problem ...Hi
I've run into a problem where if the editor is written to the page dynamically using JavaScript, then when the page is unloaded in IE 7 I get a JavaScript error.
Error is:
Line: 53
Char: 3
Object required
Code: 0
Steps to reproduce are very simple:
Put this code in a html page and view in IE 7:
(Obviously you need to change the URLs to point to your player and a video)
<script type="text/javascript">
var str = '<p><embed width="233" height="207" src="player.swf" flashvars="file=/chips.flv" type="application/x-shockwave-flash"></embed>'
document.write(str);
</script>
Then simply refresh the page or attempt to navigate away from the page to see the error.
This is a very simplified example, but any method I've tried for writing the editor to the page with JavaScript exhibits the issue.
To show how this is true the following very different code will also produce the error:
<script type="text/javascript">
window.location.replace('player.swf?file=/chips.flv');
</script>
Player version is 4.2.95 (latest version at time of writing)
works fine it seems, i have not been able to recreate the problem in my IE7 flash10 - what is your flash version ?
but as you are using javascript anyway - how about trying with the swfobject ?
please see the readme.html in the download - it uses the swfobject v.1.5 which is also in the download (16.11.2008)
as well as the http://www.jeroenwijering.com/?page=wizard
for examples using the swfobject v.2.1 please see - http://www.jeroenwijering.com/?item=Javascript_API_Examples
and the examples list here - http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/