From 73440f63fdd4c19cafdd244bc72da33e6bf17226 Mon Sep 17 00:00:00 2001 From: gnieark Date: Thu, 12 May 2016 19:30:49 +0200 Subject: [PATCH] test retour js --- src/arenas/connectFour/js.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/arenas/connectFour/js.js b/src/arenas/connectFour/js.js index 0bc5896..b0ed57c 100644 --- a/src/arenas/connectFour/js.js +++ b/src/arenas/connectFour/js.js @@ -17,7 +17,10 @@ function connectFour(bot1,bot2,xd_check){ var xhr = Ajx(); xhr.onreadystatechange = function(){if(xhr.readyState == 4){ if(xhr.status == 200) { - document.getElementById('fightResult').innerHTML = xhr.responseText; + + var reponse = eval(xhr.responseText;); + alert (reponse['continue']); + }else{ alert ('error ' + xhr.status); return;