WebIO Example Code:

Send x10 command using JavaScript and HTML iFrame

  • This example uses WebIO web page: webio.spi as target for request
  • webio.spi will accept WebIO URL query string commands yet only return a web page with text: "WebIO: Message Received"
  • This is useful for acknowledgement that WebIO received the command.
  • This example displays WebIO command response message in an iframe.
  • If message is not received, then it is assumed that WebIO did not get the X10 command message.
  • Note: There is no way to verify WebIO response in Javascript when WebIO is in a domain other then the Web Server serving this page.






  • iFrame, WebIO Response:

    note: This iframe can be made invisible using width and height of 0px