title: Chrome Extension xmlHttpRequest not working
body: <p>I'm trying to create a chrome extension and I'm trying to retrieve the weather information in this extension from the <a href="http://api.openweathermap.org/" rel="nofollow">http://api.openweathermap.org/</a> site.
  I have provided the necessary permissions in the manifest file.
  Here is my javascript code.</p>
  
  <pre><code>    function processPosition(pos)
  {
      document.getElementById("testDiv").innerHTML = "Position available. lat=" + pos.coords.latitude  + "&amp;lon=" + pos.coords.longitude;
     v_url = "http://api.openweathermap.org/data/2.5/weather?lat=" + pos.coords.latitude  + "&amp;lon=" + pos.coords.longitude;
  
     if(window.XMLHttpRequest)
     {
        xmlhttp = new XMLHttpRequest();
     }
     else
     {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     }
  
     xmlhttp.onreadystatechange = function()
     {
        if(xmlhttp.readystate == 4 &amp;&amp; xmlhttp.status == 200)
        {
           processWeatherJSON(xmlhttp.responseText);
        }
        else if(xmlhttp.readystate == 3)
        {
          document.getElementById("testDiv").innerHTML = "Downloading data";        
        }
        else if(xmlhttp.readystate == 2)
        {
          document.getElementById("testDiv").innerHTML = "Send has been called";        
        }
              else if(xmlhttp.readystate == 1)
        {
          document.getElementById("testDiv").innerHTML = "Ready state 1";
        }
              else if(xmlhttp.readystate == 0)
        {
          document.getElementById("testDiv").innerHTML = "Ready state 0";        
        }
     }
  
     xmlhttp.open("GET",v_url,true);
     xmlhttp.send();
  }
  </code></pre>
  
  <p>The problem is that the code does not enter the blocks for any of the readystates.
  So its like nothing has happened after the send() function was called.</p>
  
  <p>Any ideas?</p>
  
  <p>Here is my extension manifest file permissions section.</p>
  
  <pre><code>"permissions":[
          "http://api.openweathermap.org/data/*",
          "geolocation"
      ]
  </code></pre>