Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript howto get xhr

function httpGet(theUrl)
{
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
    xmlHttp.send( null );
    return xmlHttp.responseText;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #howto #xhr
ADD COMMENT
Topic
Name
6+2 =