I'm trying to play a wav file with my browser after it has been created. I have an embed tag on my asp page:
What does this error mean when I get to this line of my javascript:
The javascript function
Todd
Code:
<% AudioFileName = AudioFileRelPath & audioFile %>
<embed src="<%=AudioFileName%>" autostart="false" hidden="true" id="sound1" enablejavascript="true" width="144" height="60">
What does this error mean when I get to this line of my javascript:
Code:
Error: Object doesn't support this property or method. Wav file does not play and code crashes.
The javascript function
Code:
function OnPreviewAudio()
{
document.forms[0].AudioFileName.value = document.forms[0].AudioFileRelPath.value + document.forms[0].audioFile.value;
document.forms[0].sound1.src = document.forms[0].AudioFileName.value; //sound1.src looks like this: audio\50001.wav
document.forms[0].sound1.Play(); // Error: Object doesn't support this property or method. Wav file does not play and code crashes.
document.forms[0].playstate.value = 2;
return false;
}
Todd