jatos.workerID doesn't work
Hi! I am trying to program a JsPsych experiment to host it on JATOS. Specifically, I would like to assign jatos.workerID to sub_n for later manipulations. However, when I test the script in my local JATOS environment, both jatos.workerID and sub_n return as undefined in the debug console. Interestingly, the script works fine when sub_n is assigned a number directly. I was wondering what the issue might be in this case? Thank you!
jatos.onLoad(function() {
var sub_n = jatos.workerID;
...
jsPsych.init({...})
}
Comments
Hi, that’s a simple typo.
use jatos.workerId, not workerID
Elisa
Hi Elisa! Thank you for the correction. It is working now.
Best,
Yan