title: Javascript - data accessing
body: <p>I'm trying to access and display the data stored in a particular url. But my code wasn't running correctly. Any suggestion for this?</p>
  
  <pre><code>function getData( theURL ) {
     var xmlHttp = null;
     xmlHttp = new XMLHttpRequest();
     xmlHttp.open( "GET", theURL, false );
     xmlHttp.send( null );
     return xmlHttp.responseText;
  }
  var url = "https://cloudant.com/futon/document.html?acharya%2Ftoxtweet/ff558f75077e8c758523cd3bd8ffdf88";
  getData(url);
  </code></pre>