Howdy, Stranger!

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

Supported by

End Experiment

Good afternoon,

I'm designing an experiment using the most recent version of OSWeb, but I can't get it to end. The last item is an inline HTML thanking the participants for taking part, and there's a 'finish' button that ends the item. Rather than ending the experiment, a white screen is displayed. Is there a stronger way to cause the experiment to end? I'm happy to cancel the experiment, although JATOS classes this as a 'FAIL', so it's harder to filter out successful trials.


Thanks in advance for any help,


Joel

Comments

  • Hi @joelsolo99,

    There probably is an error in the way you set up the task, but it's not possible to debug it without seeing what you've done exactly. What have you tried so far to debug it? Try the task without that html object and see if the task closes. if it does, it means that the issue is with the html object and the way it's handled by the browser. If you simply want to thank the particiapnt, simpler than a html document, you could use a simple sketchpad with the duration set to "keypress".

    Best,

    Fabrice.

    Buy Me A Coffee

  • Hi fabrice, thank you for responding so soon. I've set a sketchpad to end the experiment with keypress duration so it's the last item, but still getting the same result: a white screen that doesn't end the experiment. I've tried placing the sketchpad before/after the logger.


    Best wishes,


    Joel

  • Hi @joelsolo99,

    That's odd. I notice taht yourb task contains no loop (thats rather strange, 'caise it's sugests yoiur task has no trials list, though I'm not sure trhis is what might cause the issue) and several inline_javascript. I can really debug it from s screenshot. The issue may arise from some code in one of the inline_javascript objects. Could you upload your task? Or else try removing the inline_javascripts to only have the end sketchpad and see whether the experiment does end then. If it does, then the issue is hidding somewhere inside your javascript code.

    Best,

    Fabrice.

    Buy Me A Coffee

  • Hi again Fabrice,

    I've attached my experiment without the files in the file pool (the images made it too big to upload as an attachment (although I've been running with the actual tasks disabled anyway). Apologies, my screenshots showed the sequences collapsed so the loops didn't show, but they are there.

    Even if I put just a regular sketchpad at the end, the experiment still will not close.


    Thanks again,


    Joel

  • Hi @joelsolo99,

    I had a quick look but can't spot the reason why the experiment does not appear to reach its end.

    I suspect it is cascading down from code executed ealier. I noted that you have several forms that generate error messages in the browser console, though I can't be sure this is the origin of the problem.

    My advice would be to start with a stripped down version of your task, try it out and add in the different components one by one until the problem emerges. Then you'd have a better idea of what the origin of the issue may be.

    best,

    Fabrice.

    PS: incidentally, I noticed that your program contains many redundancies (there doesn't seem to be any difference between the exp_seq_A and exp_seq_B sequences; you could use a single sequence and linked copies).

    Buy Me A Coffee

  • Hi @joelsolo99 and @Fab ,

    The issue is that the form is an entire HTML page, including html , head , body , and form tags. This doesn't match what the inline_html item expects, which is a collection of input elements that are then automatically considered part of a form. If you keep only the div and style elements, it should work!

    — Sebastiaan

  • Thank you both, you've been very helpful in finding the issue!

Sign In or Register to comment.