title: Google APi Not retrieving value
body: <p>I have a problem with google API url. I want to get the address from a zipcode. But i can't get the value</p>
  
  <p>My code is </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var filter_new = "60609";
  var request = new XMLHttpRequest();
          request.open("GET", "http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&amp;address="+filter_new, false);
          request.send();
          var xml = request.responseXML;
          var users = xml.getElementsByTagName("GeocodeResponse");
          for(var i = 0; i &lt; users.length; i++)
          {
              var user = users[i];
              var names = user.getElementsByTagName("formatted_address");
              for(var j = 0; j &lt; names.length; j++)
              {
                  var filter_new1=names[j].childNodes[0].nodeValue;
              }
          }
  alert(filter_new1);
  &lt;/script&gt;
  </code></pre>
  
  <p>When i run this code it shows the following errors:</p>
  
  <pre><code>XMLHttpRequest cannot load http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&amp;address=60609. Origin http://localhost is not allowed by Access-Control-Allow-Origin.
  
  Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 
  </code></pre>
  
  <p>Please help me.</p>