Howdy, Stranger!

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

Supported by

Texts in Browser + subject_nr

Hello,

I am preparing a self-paced reading task but while my paragraphs work quite well in OpenSesame, they are not properly aligned when run in browser. These texts are pulled from the variable name. It just goes in one line and not as a whole batch below the picture. However, my welcome screen texts are perfectly working in a sketchpad probably because they are written directly. Is there any solutions for this?


Also, I need to assign participants to different experimental conditions; which I could pull off with run if statements. However, I am not sure how this will work with JATOS. For example the 13th participant should see the list 1 and it would follow until 12th list until the 25th participant again. I couldn't really figure out with JATOS documentation either... Any help would be really great.

Best,

Hülya

Comments

  • To Hulya:

    RE your first question, I would manually add <br> to break your long text into multiple lines and present it in sketchpad. A pain I know. But you can automate this process in any programming languages.


    To OS community:

    I have the same question 2. I would like to counterbalance participants across four lists. I typically do this using subject_nr in the desktop programme. In OSWeb, if I enter '1-4' in 'possible subject numbers', OSWeb seems to randomly assign one of the subject numbers to a new participant. I wonder whether the allocation of possible subject numbers is automatically counterbalanced or whether it is just random (meaning the number of participants on each subject_nr will be roughly equal if the sample is big enough but unlikely to be matched exactly.)?

    If it is the latter, i.e. counterbalancing is not built in in OSWeb, any suggestions on how to implement this?

    Many thanks!

    boyao

  • Hi boyao!

    Thank you for your answer for the first question. I keep forgetting that I may need workarounds with HTML tags! Thanks a lot, it worked wonders.

    My second question remains, and thanks for detailing it as well :)

    Best,

    Hülya

  • Hi Hulya,

    counterbalancing across participants can be done with inline_javascript. In python the code is:

    if var.subject_nr<12:
        var.condition = 1
    else:
       var.condition= 2 
    

    (of course you need to adapt the precise conditions to your needs.

    Also as mentioned, this is Python code, so you would have to translate it to javascript to make it osweb compatible. For this simple code, it shouldn't be too complicated though. See here: https://osdoc.cogsci.nl/3.2/manual/osweb/#inline-javascript


    Eduard

    Buy Me A Coffee

Sign In or Register to comment.