title: PhoneGap not issuing AJAX (jsonp) request
body: <p>I've been trying to battle this issue all day, and have googled all over the place. It may be that I just can't find that one page with the solution... but I have looked at problems and solutions such as:</p>
  
  <p><a href="https://stackoverflow.com/questions/12110233/ajax-call-on-phonegap-not-sending-request">Ajax call on phonegap not sending request</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6518278/jquery-mobile-phonegap-ajax-calls-not-working-on-android-emulator?rq=1">JQuery mobile + Phonegap : Ajax calls not working on Android Emulator</a></p>
  
  <p>and neither of the solutions there appeared to have resolved my issue.</p>
  
  <p>All I want to do is issue an AJAX call to my remote server, upload a few parameters and download some content. This script works perfectly in a browser, but depending on minor changes to the file in Phonegap, either throws back a "timeout" error, or simply just says "error". The code is as follows (the AJAX endpoint is a dev endpoint, and I'll leave it up so you can try hitting it as well):</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" charset="utf-8" src="jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;ul&gt;
  &lt;div id="app-status-ul"&gt;
  &lt;li&gt;Loaded&lt;/li&gt;
  &lt;/div&gt;
  &lt;/ul&gt;
  &lt;/body&gt;
  &lt;script&gt;
  var serverRegHit = function(data, httpStat){
      $("#app-status-ul").append('&lt;li&gt;Server Reg OK, HTTP status: '+httpStat+'&lt;/li&gt;');
      $("#app-status-ul").append('&lt;li&gt;Data Status: '+JSON.stringify(data)+'&lt;/li&gt;');
  };
  var serverRegFail = function(data, httpStat){
      $("#app-status-ul").append('&lt;li&gt;Server Reg FAIL, HTTP status: '+httpStat+'&lt;/li&gt;');
      $("#app-status-ul").append('&lt;li&gt;Data Status: '+JSON.stringify(data)+'&lt;/li&gt;');
  };
        $.ajax({url:"http://keb.bz/gcm/?deviceid=12345",
                jsonp: 'callback',
                dataType: 'jsonp',
                timeout: 25000,
                success: serverRegHit,
                error: serverRegFail});
  
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have tried using cordova 2.9, and downgraded to 2.5, but this does not seem to have helped either.</p>
  
  <p>My config.xml has whitelisted .* and the keb.bz domain, the permissions give the app access to the internet in the manifest - and I assume this works because it is able to successfully retrieve a GCM Device ID.</p>
  
  <p>I have tried using JSON, JSONp, TEXT, and various dataType's through AJAX, but none of these have made any difference.</p>
  
  <p>Is there another configuration point in Cordova/PhoneGap that I am missing?</p>
  
  <p>Any help here would be appreciated.</p>