RUN in external browser
Hi,
I planned an experiment in OSweb and its run well.
In my experiment, there are lists of words and for each word, there is a background (in a random way). The background could be 1 of 2 images in the pool.
I defined the background var but when I tried to run the experiment in an external browser, I got a message- "background is not defined".
Do you know some way to solve it?
Thanks a lot,
Zohar.
Comments
Hi @zohar ,
It sounds like there's a reference to a variable called
backgroundthat is undefined. However, why that only results in an error with OSWeb and not when running the experiment on the desktop is impossible to tell without actually seeing the experiment. Perhaps you can upload the experiment (or a minimal example that illustrates the problem) here?-- Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi again @sebastiaan
I uploaded the wrong file.
This one is the relevant one.
Thank you.
Hi @zohar ,
The issue is that variables that are defined in one
inline_javascriptitem are not available in others, with the exception of a number of globally available variables, such asvars. You can read more about that here:In your case, you probably want to assign the
backround(potentially renamed tobackground😉) as a property of thevarsobject (i.e.vars.background), so that you can refer to it in other scripts as well.— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you! it's work now.
But... I have a new problem.
I tried to use the bar response, but a rating scale should appear after each word the participant type and then back to the bar.
So, type a word -- rating scale -- type a new word
When I try to type a word, it goes directly to the rating scale and does not allow the word to be written.
I will be glad for your help.
Thank you,
Zohar.
Hi @zohar ,
Collecting multiple-character responses with OSWeb is a bit tricky, but you can find a basic example here:
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks so much!
Last problem.... (i hope so..)
The participants should type their answers in Hebrew. when I run the experiment in the external browser the only option is to type in English.
Can this be solved? Or indeed it is adapted to English only?
Thanks again,
Zohar.
Hi @zohar ,
The only way to accomplish that, currently, is to (temporarily) bypass OSWeb altogether and implement a regular HTML form. In the discussion below you can find an example of how to do that:
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!