WebIO Example Code:

Send x10 command using HTML Form, iFrame and JavaScript

  • This example uses WebIO web page: webiox10.spi as target for request
  • webiox10.spi will accept WebIO URL query string commands and return a web page with text of last received {Housecode Unitcode Command}
  • 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.
  • Note: The Javascript in this example is not required.

  • House Code       
    Unit Code
    Enter Passcode (if used):   


    [ ... ]

    iFrame, WebIO Response:

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