title: getJSON inside another getJSON
body: <p>I'm trying to get the IP address and GPS coordinates of the client. Using jQuery, I have this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$.getJSON("http://jsonip.appspot.com/", function(data) {
    var locationURL = "http://freegeoip.net/json/" + data.ip;
    $('#IPdiv').html(locationURL);
    $.getJSON(locationURL, function(locationData) {
      $('#GPSdiv').html(locationData.country_name);
      console.log(locationData);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div id='IPdiv'&gt;&lt;/div&gt;
  &lt;div id='GPSdiv'&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>First I'm requesting the users IP address from an external site. Then I use the returned data to create another URL that is called. Sadly, the inner getJSON method isn't being run. Firebug doesn't even show the URL being called. What am I doing wrong?</p>
  
  <p>EDIT: </p>
  
  <p>Problem solved. The Ghostery plugin was blocking freegeoip.net. </p>