title: PhoneGap application not working on Google Ripple
body: <p>I'm developing a phoneGap application. When I test my application in the browser there is no problem. Everythings works well. But when I am try it in ripple, my javascript does not work. 
  In detail: The user can login the system and if it successfully redirects to another page (used jquery mobile) it works well in chrome, internet explorer, and firefox. But does not work in ripple.
  My code is shown below:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/jquery.mobile-1.3.2.css"&gt;
  
      &lt;script src="js/jquery-1.10.2.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.mobile-1.3.2.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.base64.js"&gt;&lt;/script&gt;
      &lt;script src="js/cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(function() {
              var credentials = 'admin:adminabc';
              var authType = "Basic " + credentials;
              $('#loginForm').submit(function() {
                  $.ajax({
                      type : "GET",
                      url :  'http://localhost:30673/api/user/Get',
                      data : 'json',
                      beforeSend : function(xhr) {
                           xhr.setRequestHeader("Authorization", authType);
                      },
                      success : function(data, textStatus) {
                          $.mobile.changePage("#menu", {
                              transition : "slideup"
                          });
                      }
                  });
              });
  
              $("#aboutUs").click(function() {
                  $.ajax({
                      type : "GET",
                      url :  'http://localhost:30673/api/AboutMeWA/',
                      data : 'json',
                      beforeSend : function(xhr) {
                           xhr.setRequestHeader("Authorization", authType);
                      },
                      success : function(data, textStatus) {
                          $('#aboutMeTitle').val(data);
                      }
                  });
              });
          });
  
          function onBodyLoad() {
              document.addEventListener("deviceready", onDeviceReady, false);
  
              function onDeviceReady() {
                  document.addEventListener("pause", onPause, false);
                  document.addEventListener("resume", onResume,  false);
              }
  
              function onPause() {
                  alert("paused");
              }
  
              function onResume() {
                  alert("resume");
              }
  
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="onBodyLoad()"&gt;
      &lt;div data-role="page" id="mainPage"&gt;
          &lt;div data-role="header" data-theme="a" &gt;
              &lt;h4&gt; Ziro &lt;/h4&gt;
          &lt;/div&gt;
          &lt;div data-role="content"&gt;
              &lt;form id="loginForm"&gt;
                  &lt;div data-role="fieldcontain"&gt;
                      &lt;label for="textinput1"&gt; Kullanıcı Adı:     &lt;/label&gt;
                      &lt;input name="" id="userName"  placeholder="username" value="" type="text"&gt;
                  &lt;/div&gt;
                  &lt;div data-role="fieldcontain"&gt;
                      &lt;label for="textinput2"&gt; Password&lt;/label&gt;
                      &lt;input name="" id="password"  placeholder="password" value="" type="password"&gt;
                  &lt;/div&gt;
                  &lt;input type="submit" data-theme="a" data- icon="arrow-r" data-iconpos="left"
                  value="Login"&gt;
              &lt;/form&gt;
              &lt;a href="#menu" class="ui-link" data- transition="flip"&gt;Menü&lt;/a&gt;
          &lt;/div&gt;
          &lt;div data-role="footer" data-theme="a"  data-position="fixed"&gt;
              &lt;h3&gt; FF Yazılım &lt;/h3&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
      &lt;div data-role="page" id="menu" data-add-back-btn="true" data-back-btn-text="Geri"&gt;
          &lt;div data-role="header" data-theme="a" &gt;
              &lt;h4&gt; Ziro Mobilya &lt;/h4&gt;
          &lt;/div&gt;
          &lt;div data-role="content"&gt;
              &lt;ul data-role="listview" data-divider-theme="a" data- inset="true"&gt;
                  &lt;li data-role="list-divider" role="heading"&gt;
                      Panel
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#about" data-transition="flip"  id="aboutUs"&gt; Hakkımızda &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#page1" data-transition="slide"&gt;  Referans Resimleri &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#page1" data-transition="slide"&gt; Servis Resimleri &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#page1" data-transition="slide"&gt; Slogan &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#page1" data-transition="slide"&gt; İstatistikler &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li data-theme="c"&gt;
                      &lt;a href="#page1" data-transition="slide"&gt;  Button &lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div data-role="footer" data-theme="a"  data-position="fixed"&gt;
              &lt;h3&gt; FF Yazılım &lt;/h3&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div data-role="page" id="about" data-add-back-btn="true" data-back-btn-text="Geri"&gt;
          &lt;div data-theme="a" data-role="header"&gt;
              &lt;h3&gt; Hakkımızda &lt;/h3&gt;
          &lt;/div&gt;
          &lt;div data-role="content"&gt;
              &lt;div style=""&gt;
                  &lt;img style="width: 288px; height: 100px"  src="http://aknera.com/temp/default/images/background3.jpg"&gt;
              &lt;/div&gt;
              &lt;a data-role="button" data-theme="a" href="#page1" data-icon="arrow-l"
              data-iconpos="left"&gt; Galeriden Resim Seç &lt;/a&gt;
              &lt;div data-role="fieldcontain"&gt;
                  &lt;label for="textinput2"&gt; Başlık: &lt;/label&gt;
                  &lt;input name="" id="aboutMeTitle" placeholder=""  value="" type="text" data-mini="true"&gt;
              &lt;/div&gt;
              &lt;div data-role="fieldcontain"&gt;
                  &lt;label for="textarea2"&gt; Açıklama &lt;/label&gt;
                  &lt;textarea name="" id="textarea2" placeholder=""  data-mini="true"&gt;&lt;/textarea&gt;                                                           
  
  
  
  
              &lt;/div&gt;
              &lt;a data-role="button" data-theme="a" href="#page1" data-icon="alert" data-iconpos="left"&gt; Kaydet &lt;/a&gt;
          &lt;/div&gt;
          &lt;div data-role="footer" data-theme="a"  data-position="fixed"&gt;
              &lt;h3&gt; FF Yazılım &lt;/h3&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>My application structure is shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/Bc8lc.png" alt="enter image description here"></p>
  
  <p>Error code is:xhr_proxy?tinyhippos_apikey=ABC&amp;tinyhippos_rurl=http%3A//localhost%3A30673/ap‌​i/user/Get%3Fjson rippleapi.herokuapp.com Status Code:500 Internal Server Error I'am getting data from my localhost post adress:localhost:30673/api/user/Get'; It is working well in browser . And getting data from localhost:30673/api/user/Get. But in ripple it tries to get data from There: xhr_proxy?tinyhippos_apikey=ABC&amp;tinyhippos_rurl=http%3A//localhost%3A30673/api/u‌​ser/Get%3Fjson rippleapi.herokuapp.com</p>
  
  <p>Need advice guys.</p>