mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
commit
f04879770d
@ -148,7 +148,7 @@ function saveData(name, data){
|
|||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', 'write_data.php'); // 'write_data.php' is the path to the php file described above.
|
xhr.open('POST', 'write_data.php'); // 'write_data.php' is the path to the php file described above.
|
||||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||||
xhr.send(JSON.stringify({filename: filename, filedata: filedata}));
|
xhr.send(JSON.stringify({filename: name, filedata: data}));
|
||||||
}
|
}
|
||||||
|
|
||||||
// call the saveData function after the experiment is over
|
// call the saveData function after the experiment is over
|
||||||
|
Loading…
Reference in New Issue
Block a user