title: $.getJSON to get JSONP data
body: <p>I was playing with $.getJSON in the following way to receive an alert but without luck.</p>
  
  <p>Here is the code,</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          var url = "ticker.js?callback=?";
          $.getJSON(url, function(data) {
              alert(data.price);
          });
  
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>And the ticker.js file has only the following line</p>
  
  <pre><code>{ticket:'IBM',price:14.57}
  </code></pre>
  
  <p>It is supposed to get an alert "14.57" but I am not getting the alert.</p>
  
  <p>If you would like to see it in action you may try the link,
  <a href="http://nazmulweb.com/site5/demo/jsonPtest/" rel="nofollow noreferrer">http://nazmulweb.com/site5/demo/jsonPtest/</a></p>