Announcement

Collapse
No announcement yet.

javascript question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    javascript question

    Is there a way to execute a Homeseer script command inside a javascript?

    PHP Code:
     Value: <input id="v-value" onchange="s2.setValue(parseInt(this.value))"/>
     
    hs.SetDeviceString("x1") = this.value 
    Thanks
    Don

    #2
    Don,
    Java script runs client side. HomeSeer commands have to be done server side. You would have to make a call back to the server via an ASP page to run some code back on the server to "talk to" HomeSeer.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Greg:

      Thanks for the response. I figured I'd call an asp page and add the commands via POST. haven't got it to work yet, but the day's still young.
      Don

      Comment


        #4
        Yes Don that's exactly the way to do it.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment

        Working...
        X