test retour js
This commit is contained in:
parent
2865b4b384
commit
73440f63fd
|
@ -17,7 +17,10 @@ function connectFour(bot1,bot2,xd_check){
|
||||||
var xhr = Ajx();
|
var xhr = Ajx();
|
||||||
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
|
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
|
||||||
if(xhr.status == 200) {
|
if(xhr.status == 200) {
|
||||||
document.getElementById('fightResult').innerHTML = xhr.responseText;
|
|
||||||
|
var reponse = eval(xhr.responseText;);
|
||||||
|
alert (reponse['continue']);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alert ('error ' + xhr.status);
|
alert ('error ' + xhr.status);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user