Trigger external script from app

How am I able to trigger a script hosted on a different server?

I have a script on my web server and I would like to run it when an app users clicks a certain button.

Hey George,

Is there a RESTful interface on the web server?

There are a couple of methods that come to mind:

  1. Pressing a button that triggers a CloudCode task from the app as in here
  2. Creating an external webhook to deliver a payload to an external source as described here

Would either of these methods allow you to trigge the script you are referencing?

Hi Jason,

Thanks for the reply.

I have a webpage, lets say https://www.myserver.net/somefolder/somescript.asp

I would like the button in my app to trigger the script on that pageā€¦ kind of like AJAX triggering script to run in the background.

George