Issue with using java inline script in OSWeb (Nov 2022)
I am having issues using java inline script in experiment files that used to work fine in April 2022. This happens both on mac and on windows, in browser and local mode. I tried downloading an older version of Open Sesame, but get the same problem. It also happens with some of the very useful scripts I found here:
Counterbalancing: https://osdoc.cogsci.nl/3.3/attachments/counterbalancing-osweb-jatos.osexp
Collecting multiple keyboard responses as a single string: Filemultichar-input.osexp2.94 KB
Basically, anything including java (e.g., vars.condition = 'a') causes a problem. Any idea how I can resolve this?
Thanks in advance!
Comments
Oops, my bad: I had the script in the "run" section of the inline object instead of the prepare.
One issue remains though: The counterbalancing script, referred to above, generates an error: ArrowFunction is not supported by ECMA 5.1. This also happens when I run the experiment in a browser (google chrome on Mac OS Monterey).
I searched for this on the forum, and found this post https://forum.cogsci.nl/discussion/7182/counterbalancing-using-batch-session-data where it was said that the arrow function should work properly in a browser. However, it also does not work in a browser (I tried chrome and safari).
Hi @MarkNieuwenstein ,
Unless you are using a very old browser, the ArrowFunction should not yield a " not supported by ECMA" message. So perhaps some other part of the script is causing the error? Could you either post the exact error message or the experiment here?
Cheers,
Lotje
Did you like my answer? Feel free to
