http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion/posts/javascript/place-ajax-get-request-and-trigger-callback-function-with-result.html
XMLHttpRequest ){ // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest (); } else { // code for IE6, IE5 (why am I still supporting these? Die... Die.... Die.... xmlhttp = new ActiveXObject ( "Microsoft.XMLHTTP" ); } xmlhttp . onreadystatechange = function (){ if ( xmlhttp . readyState == 4 ){ if ( xmlhttp . status == 200 ){ callback ( xmlhttp . responseText ) } else { errcallback ( xmlhttp . responseText ) } } } xmlhttp . open ( "GET" , url , true ); xmlhttp ....