43 //make an Ajax request function sendRequest(action) { // append what the client thinks the current state is to every request var state = parseInt(document.getElementById( clientState ).value); http.open( get , gameController.php clientState= +state+ &action= +action); http.onreadystatechange = handleResponse; http.send(null); }
{}