Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
blocks:app-note:basic-interaction-from-a-custom-web-page [2021-05-01 15:33]
admin Added illustration
blocks:app-note:basic-interaction-from-a-custom-web-page [2021-08-09 06:16] (current)
mattias [Custom Web Page]
Line 65: Line 65:
 This //startTask// function is defined in the //<script>// section of the code. The function makes a POST request to a URL on the Blocks server, passing it an object named taskPar, specifying the name of the task to run. This //startTask// function is defined in the //<script>// section of the code. The function makes a POST request to a URL on the Blocks server, passing it an object named taskPar, specifying the name of the task to run.
  
-:!: The URL specified in the //fetch// request omits the protocol and server name. That's OK since the fetch request is calling back to same server as the web page is served from the. If your web page isn't hosted on your Blocks server, you need to prefix the URL with the protocol and host name (or IP address), like this:+:!: The URL specified in the //fetch// request omits the protocol and server name. That's OK since the fetch request is calling back to same server as the web page is served from. If your web page isn't hosted on your Blocks server, you need to prefix the URL with the protocol and host name (or IP address), like this:
  
 <code> <code>