title: Retrieving data from a text file on a different server using jQuery and JSONP
body: <p>Hi there i am trying to do something very simple, but as i am pretty new to JSONP i am struggling with it. All i want to do is retrieve some JSON from a text file in a different domain (hence my need to use JSONP to get round the cross domain issues). I am using the following code:</p>
  
  <pre><code>$.ajax({
          type: "GET",
          dataType: 'jsonp',
          url: "http://www.topshop.com/aboutus/show.txt",
          success: returnedMessage
  });
  
  function returnedMessage(data) {
      console.log(data.message);
  }
  </code></pre>
  
  <p>I know JSONP returns the JSON as a function, but i don't know how to print the resulting json objects to the console. I am pretty sure it can be done though as i can see in the NET tab of Firebug that it is returning the JSON as a response. In the Firebug console i am getting an invalid label message, which i think is because i am not treating the JSONP request in the right way. Can anyone help me with this? </p>