title: Http GET request in javascript
body: <p>How can I get JSON from http get request in javascript? The URL is:</p>
  
  <pre><code>    http://www.streamfinder.com/api/?api_codekey=[devkey]&amp;do=get_genre_list&amp;return_data_format=json
  </code></pre>
  
  <p>I have already tried a lot of stuff, but none of them seem to work... I have tried this, but it is also not working.</p>
  
  <pre><code>function httpGet(theUrl)
  {
      var xmlHttp = null;
  
      xmlHttp = new XMLHttpRequest();
      xmlHttp.open( "GET", theUrl, false );
      xmlHttp.send( null );
      return xmlHttp.responseText;
  }
  </code></pre>