test
continuous-integration/drone/push Build is failing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 2763c6b9fc
commit 05ceffca26

@ -470,7 +470,7 @@ class UserController
$idPartie = $_SESSION['idPartie'];
$lesJoueurs = $model->getPlayersEmail($idPartie);
$lesJoueurs = json_encode($lesJoueurs);
echo ("TEST");
echo ($lesJoueurs);
}
catch (Exception $e) {
$error = $e->getMessage();

@ -1,13 +1,13 @@
function dashboard () {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersEmail', true);
xhr.responseType = 'text';
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
var playersEmail = xhr.onload = function () {
console.log(xhr.responseText + "DONE");
return JSON.parse(xhr.responseText);
};
xhr.send(null);
// var xhr = new XMLHttpRequest();
// xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersEmail', true);
// xhr.responseType = 'text';
// xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
// var playersEmail = xhr.onload = function () {
// console.log(xhr.responseText + "DONE");
// return JSON.parse(xhr.responseText);
// };
// xhr.send(null);
var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true);
xhr.responseType = 'text';

Loading…
Cancel
Save