title: Send HTTP request using JavaScript?
body: <p>I'm trying to get a JSON object from <code>http://api.roblox.com/marketplace/productinfo?assetId=361192737</code> (<a href="http://api.roblox.com/marketplace/productinfo?assetId=361192737" rel="nofollow" title="http://api.roblox.com/marketplace/productinfo?assetId=361192737">link</a>) using a GET request, but it doesn't seem to be working.</p>
  
  <pre><code>(function(){
      var xmlHttp;
      xmlHttp = new XMLHttpRequest(); 
      xmlHttp.onreadystatechange = ProcessRequest;
      xmlHttp.open( "GET", 'http://api.roblox.com/marketplace/productinfo?assetId=361192737', true );
      xmlHttp.send( null );
      function ProcessRequest(){
          console.log(xmlHttp.responseText); // "" (empty string)
          var respData = JSON.parse(xmlHttp.responseText) || {};
          RemoteEvents = JSON.parse(respData.Description) || null;
      }
  })()
  </code></pre>
  
  <p>This is on a Chrome Extension in Development Mode. I'm not very experienced with JavaScript, and even less with HTTP requests. What am I doing wrong?</p>