Hi FME'ers,
Just in case anyone is online today, and might know this, I have a question about JavaScript and FME Server. I have a line of JavaScript like this:
<svg id="fillgauge1" width="10%" height="600" onclick="gauge1.update(42);"></svg>
It basically sets a new value to 42. But I also have an FME Server stream that returns the number 42:
So, what I want to know is, can I somehow get the response from that FME Server URL into my JavaScript?
I was hoping something simple like pasting the URL would do it:
<svg id="fillgauge1" width="10%" height="600" onclick="gauge1.update(http://imark/fmedatastreaming/imark/CreateNumberStream.fmw?etc etc);"></svg>
But I figure that's very unlikely, and just shows my lack of js experience.
Any assistance would be much appreciated!
Mark