URL of experiment: Pavlovia
Description of the problem:
Participants view two images and rate them. The images are drawn from a list. As the csv does not contain the information which images are shown I added the following Python code (see here: Exeriment only partially saves results):
thisExp.addData('bilderle', pictures.image)
thisExp.addData('satzeles', Satze.image)
This works fine, but I don’t know how to translate this into JavaScript for the online version. I tried:
psychoJS.experiment.addData('bilderle', pictures.image.toString());
psychoJS.experiment.addData('satzeles', Satze.image.toString());
I get two additional columns in the csv, but all they say is “[object HTMLImageElement]” instead of showing the names of the images.
I also tried to add psychoJS.experiment.nextEntry();
Any help is appreciated!