URL of experiment: https://pavlovia.org/jaycbcs/esst_2
Description of the problem: working fine in online mode
when i am running it is giving an error that
" ReferenceError: win is not defined"
Thanks in advance…
any suggestion.
Thank You
URL of experiment: https://pavlovia.org/jaycbcs/esst_2
Description of the problem: working fine in online mode
when i am running it is giving an error that
" ReferenceError: win is not defined"
Thanks in advance…
any suggestion.
Thank You
That’s an easy one. You need to define win
Check my crib sheet
I would recommend having a JS code window in the first routine with (as a minimum):
thisExp=psychoJS.experiment;
win=psychoJS.window;
Best wishes,
Wakefield
Thanks a lot. it really helped and some other issues.
Thank You
sorry to bug you again…
i am using shuffle function in my experiment.
i am adding this text in my code with
thisExp=psychoJS.experiment;
win=psychoJS.window;
shuffle = function (a) {
return util.shuffle(a);
}
giving error message as shuffle function is not defined
Thank You
Have you added the shuffle function at Javascript to the first Begin Experiment block (or at least in Begin Experiment before you try to use it)?
For example, I have a starting code block that looks like this:
Thank you for replying,
Did same thing in first routine
first code section.
giving error message again:
ReferenceError: shuffle is not defined
running online.
When i am compiling in builder mode and it is generating code, this piece of code is not appearing there.
"thisExp=psychoJS.experiment;
win=psychoJS.window;
"
This was working when putting in the py (code type).
Thank You
Three questions
Are you using the latest version of PsychoPy?
Is your “Use PsychoPy version “ field blank?
What do you mean by compile? I use the sync button to upload.
Are you using the latest version of PsychoPy?
Latest PsychoPy v2020.1.3
Is your “Use PsychoPy version “ field blank?
How to get this specification, please let me know.
What do you mean by compile? I use the sync button to upload.
I compile in builder mode then sync it for https://pavlovia.org/
Thank You