title: jsonp in codeigniter
body: <p>I am trying to get jsonp working with codeigniter, I am generating standard json with proper header ..</p>
  
  <pre><code>   $this-&gt;output
          -&gt;set_content_type('application/json')
          -&gt;set_output($json_data);
      }
  </code></pre>
  
  <p>so the proper header is set for json and theres nothing wrong with the json generated using the above method..</p>
  
  <p>Now using jquery , I am testing </p>
  
  <pre><code>&lt;script&gt;
    $(document).ready(function(){
    var url = "https://localhost/upload/latest/json/10&amp;callback=?";
      $.getJSON(url,function(data) {
          alert(data);
      }); 
    });
    &lt;/script&gt;
  </code></pre>
  
  <p>it wont show any alert</p>
  
  <p>whereas the jsonp url of twitter shows alert </p>
  
  <pre><code>&lt;script&gt;
    $(document).ready(function(){
    var url = "https://twitter.com/status/user_timeline/twitter.json?count=10&amp;callback=?";
      $.getJSON(url,function(data) {
          alert(data);
      }); 
    });
    &lt;/script&gt;
  </code></pre>
  
  <p>I have enabled query strings in config.</p>
  
  <pre><code>$config['enable_query_strings'] = TRUE;
  </code></pre>
  
  <p>please guide me how to design the urls for jsonp in codeigniter..</p>
  
  <p>Thanks ...</p>