-
Hi everyone, I have created a simple mock experiment to illustrate the problem, as the same problem with empty save documents occurs here. index.html <title>My experiment</title> <script src="jspsych/jspsych.js"></script> <script src="jspsych/plugin-html-button-response.js"></script> <script src="jspsych/plugin-call-function.js"></script> <script> var jsPsych = initJsPsych({ on_finish: function() { jsPsych.data.displayData(); } });
write_data.php Any input is greatly appreciated. Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
My code has been deleted from my post, I would guess for security reasons. So I will add it again here. Sorry for the inconvenience: index.html
write_data.php |
Beta Was this translation helpful? Give feedback.
Hi @imkri -
I recently ran into this issue myself. I solved it by removing the
name
argument from thesaveData()
function, like so:This potential solution was inspired by #2774 from @jodeleeuw. If the
name
parameter isn't being used, perhaps the data input is being evaluated in thename
position, and thedata
parameter ends up empty/null. This would make sense with what I was experiencing, at least, such that a file …