title: JSONP To Acquire JSON From HTTPS Protocol with JQuery
body: <p>I'm trying to acquire a JSON which is being sent from an https secure site,</p>
  
  <p>The client was hoping not to use any Server-side languages (the whole thing in Javascript)</p>
  
  <p>I've read that I must use JSONP in order to load a JSON from a secure site, when using the .ajax function from Jquery. </p>
  
  <p>My first question would be what format do I need to set this JSONP as? Right now my code looks like this:</p>
  
  <pre><code>html =new Object();
      html = $.ajax({
        url: "https://my-secure.net",
        async: false,
        dataType: 'jsonp'
       }).responseText;
  
  //alert(html);       
    alert("myObject is " + html.toSource());
       console.log(html);
  </code></pre>
  
  <p>However, nothing is being alerted, nor is anything being logged in Firebug. Basically I want to be able to manipulate the JSON data. I see the data in the Response under Firebug, but there's an error which says "invalid label." I've read that in order to fix this you encase it in the eval function with extra parantheses but this is not working. </p>
  
  <p><a href="http://b.lesseverything.com/2007/10/25/invalid-label-error-when-eval-json" rel="noreferrer">http://b.lesseverything.com/2007/10/25/invalid-label-error-when-eval-json</a></p>
  
  <p>I also get an error which says my $.ajax request is "undefined" but I can see the data in the response. I suspect this has something to do with how I am grabbing the initial data. Any advice would be appreciated. Thank you!</p>