Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

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

Sign In or Register to comment.