Howdy, Stranger!

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

Supported by

Error running experiment online

Hello everyone,

I am trying to run an experiment, a picture selection task, in browser but I get the message you can find in the sscreenshot I am attaching. Apparently, the inline_script item I included to register the correct response is not supported. My idea is to collect data online, so I will need to make the experiment available online through the OSWeb extension using the online JATOS server.

In this line, my question is the following: is it possible to implement the experiment online if the inline_script item is not supported?

Thank you very much in advance for you help.

Best,

Elena

Comments

  • Hi Elena,


    If you are using inline code you'll have to translate your Python code to JavaScript in order for your experiment in the browser.

    In order to run this code you'll need an inline_javascript item rather than an inline_script.


    Just let us know if you need help with the "translation".


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi, thanks a million for your help :) I just tried to convert the Pyhon code I had into Javascript and now I can run the experiment on browser, but for some reason, I get the application error you see in the screenshot I am attaching.

    I am leaving here the Javascript code in case I made an error writing it.

    Thank you very much in advance!

    Best,

    Elena

  • Hi Elena,


    In JavaScript variable names should be preceded by vars. (e.g. vars.response) rather than var.


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi Lotje, it works now!!

    Thank you very much for you help :)

Sign In or Register to comment.