Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

JATOS changes format/appearance of the expertiment?

edited December 2021 in JATOS

Hello,

I am trying to use JATOS for the first time, so apologies in advance if I am making some basic mistakes.

I coded my simple experiment with jsPsych, and it worked well when imported in JATOS (locally). Then, I 'jatosified' my script by adding the relevants bits of code indicated here https://www.jatos.org/Adapt-Pre-written-Code-to-run-it-in-JATOS.html.

Now I do have some results saved, but the appearences of my task are changed. I used to have four images appearing in each of the four corners of the screen for each trial, and now the four images appear all aligned vertically. Please note that I did not change any part of the script concerning the style or the components.

Any suggestion?

Thanks!

Silvia

Comments

  • Hi Silvia,

    That's odd. JATOS does not change the appearance of your task. I'll ask a few questions to try to understand what went wrong.

    • You're still running your study locally, right?
    • Do the figures align in the same way regardless of the size of your browser window?

    I actually have no more questions, maybe you could send a minimal reproducible example of your code and I can have a look at it.

    Best

    Elisa

  • Dear Elisa,

    thanks for your quick reply!

    While preparing the code to write this answer, I figured out the issue, which was very tiny and stupid. I will report it here just in case someone else in the future will have a similar problem and come across this thread.

    The problem was that I had this line:

    <script src="jatos.js"></script>'

    instead of this line:

            <script src="jatos.js"></script>

    So in other words, I only had an accidental apostrophe in my script. It did not raise any error or warning, but it messed up the whole format. Now that I fixed it everything seems to be working fine.

    Thanks again!

    Silvia

Sign In or Register to comment.