frameDur is not defined error

okay I’ve figured it out -
the variable not defined issue in my instance was caused by the following:

i’ve been copying and pasting these folders about a lot and when I was trying to upload the study online a lot of these junk folders were in the html.

When I started a “clean” folder from scratch I didn’t encounter any of these problems.

I hope this helps - all I need to do now is:
(1) make that loop work
(2) split the location co-ordinates and learn how to incorporate that into the code component

Hope this helps,
Cheers,
Tom

Hi There,
Where would you add the var frameDur; if you dont have a code component in the experiment? Could you please elaborate how you solved it?

Hi @ttselha, to edit your code, open your experiment in pavlovia and click view code tab. In the htlm folder, there is an experimentname.js file. Open it and then you can edit it. :slightly_smiling_face:

Thanks. I got that part. My issue was more with at what section/line of the code you would put the var frameDur; .

Hi @ttselha, should be around these lines.
111
But I would suggest you to check your experiment carefully rather than fix var, see here frameDur is not defined error - #11 by jon. Sorry I can’t quite remember in which experiment and why I got this problem, but I can make sure that I did not fix it by adding var manually.

Yeah this error for me too was a sign that there were errors with my study - if you fix that error by manually inputting the code it will probably ask you to do it with about another 20 variables and it still won’t get you very far.