title: Using JSONP to get JSON data from another server
body: <p>I'm trying to collect JSON data from a website hosted by a company. I am not on the same domain, so I can't just access it. From the headers, it seems that they don't use CORS either. So I've tried to use JSONP to parse the data, but it doesn't seem to work. I've tried doing $.getJSON and $.ajax, but those throw errors and don't call the function. This is my solution thus far, and in the response from the server, it still doesn't wrap the data in getResults.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;script type="text/javascript" src="jquery/js/jquery-1.9.0.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  function getResults(data) {
      console.log(data[0].name);
  }
  &lt;/script&gt;
  &lt;script type='text/javascript' src='https://solstice.applauncher.com/external/contacts.json?callback=getResults'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>
    </p>
  
  <p>
  </p>
  
  <p>I'm fairly new to HTML, JavaScript, and jQuery, so I'm just really confused why the response is being wrapped in the function and console log isn't working. Any help would be appreciated. </p>