title: Phonegap Multiple Pages
body: <p>I'm currently working on an application in cordova. Since I have more pages I tried to add a menu. On the first page (index.html) there is some output, on the second file (settings.html) I want to make a Ajax-Request to a external server. </p>
  
  <p>In the <code>&lt;head&gt;</code>-Tag all stylesheets and jQuery and Cordova is included. In the <code>&lt;body&gt;</code>-Tag some Ajax-calls are made. </p>
  
  <pre><code>&lt;head&gt;
  
  &lt;meta charset="utf-8" /&gt;
  &lt;meta name="format-detection" content="telephone=no" /&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"/&gt;
  
  &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/start/jquery-ui.css" /&gt;
  &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" /&gt;
  
  &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onload="onLoad();"&gt;    
  &lt;div data-role="controlgroup" data-corners="false"&gt;
    &lt;a href="index.html"&gt;Home&lt;/a&gt;
    &lt;a href="settings.html"&gt;Settings&lt;/a&gt;
  &lt;/div&gt;
  &lt;!-- Ajax Requests --&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>If I hit Settings I get to the html-page and the code will be displayed, but the code jQuery/js-code will not be executed. (I tried an alert, but it's not working)</p>
  
  <p>Can you tell me what possibilities I have to include another page with working js-code?</p>
  
  <p>Thanks!</p>