Its seems like this fails on all danish windows xp home edition versions.
But runs fine on a normal english version of windows xp.
When I load this page, I will see the vlc logo, so the activex object is loaded.
But when i try to communicat with the activex object it fails. Fx. document.vlc.play(); It fails.
And i have no idea what i can do to fix this problem.
Code: Select all
<html>
<head>
<title>
Test
</title>
</head>
<script>
function make()
{
document.getElementById('place').innerHTML='<OBJECT id="vlc" name="vlc" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" height="0" width="0"><param name="Loop" value="True"/></OBJECT>';
vlc.style.height = 150+"";
vlc.style.width = 200+"";
try
{
document.vlc.stop();
document.vlc.play();
}
catch(e)
{
alert("Error does not work in danish version")
}
}
</script>
<body onload="make()">
<div id="place"></div>
</body>
</html>