function http_get_body_async(url, callback)
{
    var xhr = new XMLHttpRequest();
    xhr.callback = callback;
    xhr.arguments = Array.prototype.slice.call(arguments, 2);
    xhr.onload = xhrSuccess;
    xhr.onerror = xhrError;
    xhr.open("GET", url, true);
    xhr.send(null);
}
// invokes callback function when it returns data
invokes callback function when it returns data
invokes callback function when it returns data
function http_get_body_async(url, callback)
{
    var xhr = new XMLHttpRequest();
    xhr.callback = callback;
    xhr.arguments = Array.prototype.slice.call(arguments, 2);
    xhr.onload = xhrSuccess;
    xhr.onerror = xhrError;
    xhr.open("GET", url, true);
    xhr.send(null);
}
function http_get_body_async ( url , callback ) { var xhr = new XMLHttpRequest ( ) ; xhr . callback = callback ; xhr . arguments = Array . prototype . slice . call ( arguments , 2 ) ; xhr . onload = xhrSuccess ; xhr . onerror = xhrError ; xhr . open ( "GET" , url , true ) ; xhr . send ( null ) ; }
invokes callback function when it returns data
invokes callback function when it returns data