Brock MacDonald Brock MacDonald - 1 month ago
535 0

No description

Javascript

MacDonald | JavaScript | Thue-Morse Sequencer

<script>
	function getResults(val) {
			if (window.XMLHttpRequest) {
				// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			} else {
				// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					
					document.getElementById("bigTable").innerHTML = this.responseText;
				}
			};
			xmlhttp.open("GET","get_results.php?count="+val,true);
			xmlhttp.send();
	}
</script>