[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: sending xPL commands from an ASP page
> is there any way to send xPL commands from an ASP page (ie jscript or
> vbscript)? is there any example code that does this? do i need to
> create an activexobject using xpl.ocx?
If you are using ASP.NET, you can use the DLL that ships with the xPLHal
Web Access software in your own applications to easily send xPL messages,
and display the value of xPLHal globals.
E.g. to switch on an X10 light, your page might look like this:
<%@ Page Language="VB" inherits="xplhal.xplhalbase"
%>
<html>
<head>
<title>Sample page for X10 control</title>
</head>
<body>
<%
SendXplMsg("","*","x10.basic","command=on"
& vbLf & "device=d3")
%>
<p>The X10 light at address D3 has now been switched on.</p>
</body>
</html>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|