Cannot get text to appear as it is typed #1550
-
I am using the jsPsych library to code any experiment. I am very new to js, so I apologize if my error is obvious. I am trying to get text to appear on-screen as it is typed. This was done successfully in this experiment, after the creator modified the html-keyboard-response plugin to be a html-keyboard-multiple-response plugin. I have tried to combine this plugin with the image-keyboard-response, to use images instead of html as stimuli. The problem is that the text doesn't appear as it is typed, unlike in html-keyboard-multiple-response. I know the keystrokes are being logged, since they show up at the end with displayData(). My adapted plugin is located here: jspsych-image-keyboard-multiple-response.js, and the experiment is here: image-keyboard-multiple-response.html. Would it be possible to take a quick look at the plugin, to see if I miscoded something in combining the other two plugins? I believe the error is near line 83 in my image plugin, which looks like this:
This is meant to correspond to line ~61 in the html plugin:
Is there something I should change in my image plugin so that the text appears as it is typed, as occurs in the html plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have resolved this issue. |
Beta Was this translation helpful? Give feedback.
I have resolved this issue.