test retour js

This commit is contained in:
gnieark 2016-05-12 19:33:12 +02:00
parent 4b4f20283a
commit 2d0413e5b7

View File

@ -17,10 +17,7 @@ function connectFour(bot1,bot2,xd_check){
var xhr = Ajx();
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
if(xhr.status == 200) {
var reponse = eval(xhr.responseText);
alert (reponse['continue']);
document.getElementById('fightResult').innerHTML = xhr.responseText;
}else{
alert ('error ' + xhr.status);
return;