http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion/posts/javascript/place-ajax-get-request-and-trigger-callback-function-with-result.html
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 . send (); } Usage Example var success = alert ; var error = console . log ; fetchJSON ( 'sitemap.json' , success , error ); ajax ecmascript get javascript request...