I have a job which runs on iron.io that runs when a payload is POSTed to it.
This job then returns a text string.
I would like to have a text field where the user can type some text, POST it to that URL, and then the text area is updated with both the originally typed text and the response from the worker.
How do I begin to break down this problem?
It is kinda-sorta similar to using Jquery in Rails with a respond_to method (basically Ajax I think), but I'm not using Rails. I think this could all be done with the appropraite javascript on the front-end and I am using Ruby for the worker file.
I read through this post: How do I return the response from an asynchronous call? but I think I'm not clear specifically what to do, especially on the worker side.