Reply To: Embedding HTML

PennController for IBEX Forums Support Embedding HTML Reply To: Embedding HTML


Hi Jeremy,

Thanks so much for your help and the advice! I know iframes aren’t ideal, but as far as I can find there isn’t another way to do what I’m trying to do. Basically, the tasks that I’m trying to have my participants complete were too complex for me to create directly in PCIbex, which is why I’m hosting them on an external site and embedding them here. The main problem I’m facing is that I don’t want my participants to be able to advance in the experiment until they complete each task, but there’s no way for Ibex to know when the embedded task is completed. I had the idea to check the color of the canvas the task is embedded in (it’s white once they’ve completed the task), but there seems to be something wrong with my implementation since the button isn’t appearing. Is what I’m trying to do realistic in Ibex? Or do you think I need to find a different way to host the experiment? Thanks again for your help!

newTrial( "trial_1" ,

    newPalette("MyPalette") ,

        .print() ,

    newHtml("test", "test.html")
        .print("MyCanvas") ,
    newButton("Continue" , "Continue")
        .wait() ,
    newFunction("Checker" , () => { Palette.test.color("MyCanvas", "white");})
        .success( getButton("Continue").print(475,300))
        .failure( getFunction("Checker").call())