Results 1 to 2 of 2

Thread: Web URL Based Automation App

  1. #1
    Automated Home Jr Member
    Join Date
    Apr 2016
    Posts
    27

    Default Web URL Based Automation App

    Hi,

    I have a control product that uses web URLs to send commands to a programmed control pad but the manufacturer's web interface is pretty poor and non-configurable. What I need is a bit of advice on how to put a button into a website that I create that when clicked, goes to this URL in the background so it doesn't mess up the front end.

    Where xxx is the IP, the Url command is http://xxx.xxx.xxx.xxx/rpc/button_click?id=1

    There are 8 buttons id=1 through to 8 and sending that url will click the button. The rest I can sort out but I'm really stuck in how to send the above in the background as the web software I use will either open that URL in the current window or a new window or tab.

  2. #2
    Automated Home Sr Member wywywywy's Avatar
    Join Date
    Dec 2005
    Posts
    86

    Default

    How experienced are you with Javascript?

    You can do an ONCLICK attribute inside of an A or BUTTON tag, to call a function, then in that function just do a XMLHttpRequest.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •