title: Use JavaScript to display data from JSONP web service
body: <p>I'm trying to retrieve data from the itis.gov web service and display on an html page.  </p>
  
  <p>The site has <a href="http://www.itis.gov/web_service.html" rel="nofollow">JSON and JSONP web services</a>. I cannot figure out why my code below is not working, I've got the code to work with other JSON web service APIs such as the facebook API.</p>
  
  <p>Here is an example <a href="http://www.itis.gov/ITISWebService/jsonservice/getScientificNameFromTSN?tsn=202384" rel="nofollow">JSON API call</a> using the webservice method "getScientificNameFromTSN"</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;body&gt;
  &lt;script&gt;
  $(document).ready(function() {
     var url="http://www.itis.gov/ITISWebService/jsonservice/getScientificNameFromTSN?";
     $.getJSON(url, { "tsn" : "202384" }, function(data) {
        document.write(data.author);
     });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>