title: jQuery not parsing JSON in PhoneGap
body: <p>I'm trying to parse a JSON from a server using JSONP with jQuery.
  The code below is used with PhoneGap, for creating an Android app using HTML.
  When I use the code below in Safari, e.g., it works fine, but with phone gap it simply does not work!</p>
  
  <p>Does anybody know the reason why this is happening?</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;PortalARP&lt;/title&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; 
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="cordova-1.8.0.js"&gt;&lt;/script&gt;
      &lt;script&gt;
  
          $(document).ready(function () {
              $("#conteudoArea").append("&lt;ul&gt;&lt;/ul&gt;");
              $.ajax({
                  url: 'http://portalarp.com.br/portal/produto/gerar_json?id_categoria_pai=56',
                  dataType: 'jsonp',
                  crossDomain: true,
                  jsonp: false,
                  jsonpCallback: 'jsonFlickrFeed',
                  success: function (d) {
                      $('#title').text(d.id_produto);
  
                      var i, l = d.items.length, newLi, newItem;
  
                      $('&lt;ul id="photoList"&gt;&lt;/ul&gt;').appendTo('#main');
  
                      for (i = 0; i &lt; l; i++) {
                          newLi = $('&lt;li&gt;&lt;/li&gt;');
                          newItem = d.items[i];
  
                          $('&lt;h2&gt;' + newItem.nm_produto + '&lt;/h2&gt;').appendTo(newLi);
                          $('&lt;h3&gt;' + newItem.nm_marca + '&lt;/h3&gt;').appendTo(newLi);
  
                          newLi.appendTo('#photoList');
  
                      }
                  }
              });
          });
  
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div id="main"&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>