From 5c80710f8e2d8b1048fe3a40a70ff47b3ea3b561 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 27 May 2016 22:43:39 +0200 Subject: [PATCH] fix --- html/testBot.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/testBot.html b/html/testBot.html index ed1513c..0ffae0b 100644 --- a/html/testBot.html +++ b/html/testBot.html @@ -133,11 +133,12 @@ function play(player){ alert ('la reponse du bot doit etre un digit compris entre 0 et 7, correspondant à la colonne. Voici sa réponse' + response); } }else{ + alert (xhr.status); die; } }}; - xhr.open("POST", document.getElementById('player' + player + 'URL'), true); + xhr.open("POST", document.getElementById('player' + player + 'URL').value, true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send('game=connectFour&match_id=666-' + player + '&you=' + symbol + '&grid=' + JSON.stringify(grid) );