<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="styles/mainStyle.css" type="text/css">
<title>Lamp Lighter</title>
</head>
<BODY onload="loader()">
<CENTER><H2>PTC Lamp Lighter Commands</H2></CENTER>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
var x10;
function loader(){x10 = new ActiveXObject( "X10.ActiveHome" );}
function DoCommand( Command ) {
if (Command == 09) {x10.SendAction( "sendplc", "a5 on" );}
if (Command == 10) {x10.SendAction( "sendplc", "a5 off" );}
}
</SCRIPT>
<CENTER><FORM NAME="myButtons">
<BR>
<INPUT NAME="btnSendCommand09" TYPE="Button" VALUE="A5 ON" onclick="DoCommand( 09 );">
<INPUT NAME="btnSendCommand10" TYPE="Button" VALUE="A5 OFF" onclick="DoCommand( 10 );"><br>
</FORM></CENTER>
</BODY>
</HTML>
Works from a server when "Enable Protected Mode" is left unckecked, but not when checked. Works both ways in localhost. Any ideas?
Many Thanks,
ClarkNaylor