lpxhs5
July 3, 2020, 10:55am
1
URL of experiment: Pavlovia
Description of the problem:
I’m using setAutoDraw(True) to present some image stimuli online. I get the error message: ReferenceError: True is not defined.
Here’s how I’ve coded the images for javascript:
What can I do to fix this?
Thank you!
Hannah
In JS you use true not True. The auto translator knows this, so it doesn’t normally come up.
1 Like
@lpxhs5 Out of curiosity, does your python code (left hand side) work when running the task locally?
lpxhs5
July 3, 2020, 11:24am
4
Thank you! Works perfectly now!
I was using your crib sheet to edit the Javascript manually:
lpxhs5
July 3, 2020, 11:33am
6
Hi!
Yes, it works when running locally.
The intention is that you edit the Python side – that’s not in the manual translation section. Sorry for the confusion.
lpxhs5
July 3, 2020, 11:49am
8
Ah, I see, my bad!
Thank you for your help!