Browser issue with randomized blocks - Run If statements?
Hi,
I've just made a simplistic version of an experiment in order to test out OSWeb. In this expt there are blocks (of different stimuli sets) to be presented randomly, so I followed this helpful thread: http://www.cogsci.nl/forum/discussion/1979/open-how-to-randomize-blocks (Thanks andersony3k Richard Anderson).
The expt runs in opensesame. However I get an error in the Chrome browser ("Uncaught TypeError: Cannot read property 'body' of null"). It stops before the experiment_loop, which suggests to me that it might be the Run If statements. I did check the Forum and have the [ConditionName] = "..." format though. Perhaps there are other issues? (a total newbie here!)
Attached are the experiment and the Chrome console error.
Any suggestions would be much appreciated, thanks!
Comments
Hi @carolyn
I checked your experiment, removing the quotes around the
run_ifvalues in Block_sequence made this work for me, for example:[ConditionName] = "HappyMed"becomes[ConditionName] = HappyMedIf it works in OpenSesame and not in OSweb, then this definitely is a bug in osweb, so I have created in issue for it in its issue tracker.
There is also an empty column in your Experiment_loop. While this isn't harmful perse, it is a good idea to clean these up.
For now I hope you can move forward with this!
Thank you so much Daniel,
That worked for me, I just tested it on the JATOS test server.
I noticed that in OSweb, German characters are maybe not recognised ("Ärger" displays as it should in OpenSesame but "undefined" shows up in OSweb) but I figure I can get around that by using an image instead if needed.
Best regards,
Carolyn
Hi Carolyn.
Good that you mention it though. Those characters should be supported. Would you mind posting a problem description on https://github.com/osweb/issues, so it will remain on our radar and we can investigate and fix this in a future release? Thanks!