title: Phonegap FileTransfer and JQuery Mobile JSON Response
body: <p>i need some help fom the experts.</p>
  
  <p>I want upload a picture to my php script and it works.
  Now, i want get back a JSON Response after upload to my div #showdata, but it don't work :(</p>
  
  <h2>Start Transfer Upload</h2>
  
  <pre><code>     var options = new FileUploadOptions();
                  options.fileKey="file";
                  options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
                  options.mimeType="image/jpeg";
  
                  var params = new Object();
                  params.message = pmsg;
                  options.params = params;
                  options.chunkedMode = false;
          var ft = new FileTransfer();
          ft.upload(imageURI, server, function(r) {
          document.getElementById('camera').innerHTML = "Upload successful: "+r.bytesSent+" bytes uploaded.";  
          $.mobile.hidePageLoadingMsg();
  
   // here get the Json response
  
      $('#showdata').html("&lt;p&gt;item1="+r.item1+" item2="+r.item2+" item3="+r.item3+"&lt;/p&gt;");}, function(error) {
      document.getElementById('camera').innerHTML = "Upload failed: Code = "+error.code;              
      }, options); }
  </code></pre>
  
  
  
  <p>Can you help me, how i display the JSON results.
  Thank you!</p>