Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Netscape WMP Scripting

0 views
Skip to first unread message

Miguel Gonzalez

unread,
Sep 4, 2001, 2:00:59 PM9/4/01
to
I'm in the process of setting up a "Wizard" that will help our
customers get properly configured so they can listen to Windows Media
Files. I have wonderful script that works well in IE 4+, but breaks in
Netscape 4x. Has anyone been able to get WMP scripting to work with
Netscape? Any help will be appreciated.

The error i get is:

SetupWizard is not defined

Here is the code im using:
<Script Language="JavaScript">
setTimeout("checkProtocol()", 10);

function checkProtocol() {
var mpReadyStateInteractive = 3;

if (SetupWizard.WMP.ReadyState < mpReadyStateInteractive) {
setTimeout("checkProtocol()", 100);
} else {
switch(SetupWizard.WMP.SourceProtocol) {
case 1:
case 2:
case 3:
case 4:
case 5:
alert('Ok');
break;
case 6:
SetupWizard.WMP.Enabled = "False";
alert('bad');
break;
case 7:
break;
default:
break;

}
}
}
//-->
</Script>

<!-- basic html, only flow of code is shown, object and embed code has
been stripped to save space -->

<form id="SetupWizard" name="SetupWizard">
<table>
<tr>
<td>
<object id="WMP" name="WMP">
<embed name="WMP" id="WMP">
</embed>
</object>
</td>
</tr>
</table>
</form>

0 new messages