Miscellany
public javascript v1 · immutablevar response;function canPlay( from, moveTo ) { xmlHttp = GetXmlHttpObject(); xmlHttp.open( 'POST', url, true ); xmlHttp.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' ); xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { response = xmlHttp.requestText; return response; } } xmlHttp.send( 'canPlay='+ _GAME_CODE +'&playerId='+ _PLAYER_ID +'&from='+ from +'&moveTo='+ moveTo );}