Hi,
I'm updating a javascript variable on the onchange function of a select box. I need this updated value to enter into a parameter for windows media player 6.4, this is what I currently have:
This does not seem to be working. I think my syntax is wrong although I get no javascript errors, just an error in the media player saying 'file not found'. Any ideas?
thanks
I'm updating a javascript variable on the onchange function of a select box. I need this updated value to enter into a parameter for windows media player 6.4, this is what I currently have:
Code:
<script language="javascript">
//for this example I hardcode the video field
var video_name = "http://myserver/myvideo.mpg";
</script>
<OBJECT ID="video" width=176 height=144>
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="Filename" VALUE="' + video_name + '">
</OBJECT>
This does not seem to be working. I think my syntax is wrong although I get no javascript errors, just an error in the media player saying 'file not found'. Any ideas?
thanks