-
Hi everyone! My experiment uses an xml file. Will I be able to administer the experiment using cognition.run? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @woodenchair, How do you use the XML file in the experiment? |
Beta Was this translation helpful? Give feedback.
-
Hello @woodenchair, Let me take a step back and think about the problem before diving into the solution. The problema here is that you have a task A and a task B. The task B needs some data from the task A, right? So now we have two problemas:
To solve 3) I have two suggestions: |
Beta Was this translation helpful? Give feedback.
-
Update: I have figured out how to code the experiment without using XML. I created two custom plugins, each one derived from the canvas-keyboard-response plugin. Within the first plugin, I use a web storage API function to log the selected canvases, by element ID, in the user's browser (e.g., sessionStorage.setItem("c1", canvasIDs[0])). Then, in the second plugin, I just retrieve the canvas data from the browser (e.g., sessionStorage.getItem("c1")). Thank you, everyone, for your help! |
Beta Was this translation helpful? Give feedback.
Update: I have figured out how to code the experiment without using XML. I created two custom plugins, each one derived from the canvas-keyboard-response plugin. Within the first plugin, I use a web storage API function to log the selected canvases, by element ID, in the user's browser (e.g., sessionStorage.setItem("c1", canvasIDs[0])). Then, in the second plugin, I just retrieve the canvas data from the browser (e.g., sessionStorage.getItem("c1")).
Thank you, everyone, for your help!