Synchronous HTTP GET in JavaScript
Taking the “A” out of “AJAX.”
function get(url) {
var ajax = new XMLHttpRequest();
ajax.open('GET', url, false);
ajax.send(null);
return ajax.responseText;
}
Of course this will be different for IE….
Taking the “A” out of “AJAX.”
function get(url) {
var ajax = new XMLHttpRequest();
ajax.open('GET', url, false);
ajax.send(null);
return ajax.responseText;
}
Of course this will be different for IE….
This is a free Wordpress template provided by Mathew Browne | Web Design | SEO