I have a possible contract for a web app that would require capturing response times in milliseconds to a key being pressed when an image is shown on screen.
This task would be repeated a number of times in quick succession and I wondered if this could be achieved by running the test on the client end using javascript?
I have a feeling that running it from the server side would be too susceptible to latency issues.
Any pointers as to how to go about this would be much appreciated!
Thanks Tim and Michel for your replies - I’ll have to take a look at the WebSDK to see what’s possible although my JavaScript skills are not up to much!
In the page onkeydown, create a new date object, getmilliseconds, subtract startingTime, and use WebSDK TriggerServerEvent to send the value back to Xojo.
And catch that value in Session.HashtagChanged, where you check if HashTag starts with “responsetime:”, and the value is on the right side of the string.
I linked to the excellent w3schools LR pages, where you have very good practical examples.