title: Phonegap jQuery: cannot call method confirm of undefined
body: <p>I am creating a simple phonegap based application using jQuery mobile. </p>
  
  <p>Here is the Header of my HTML</p>
  
  <pre><code>&lt;script src="scripts/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="scripts/jquery.mobile-1.1.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="scripts/jquery.jsonp-2.4.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" charset="utf-8" src="scripts/cordova-2.2.0.js"&gt;&lt;/script&gt;
  &lt;script src="scripts/my.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In the body after all my HTML code I have added</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
  navigator.notification.confirm('Do you want to quit', 
          function(){
              if(button == "1"){
                   navigator.app.exitApp(); }
          }, 
          'QUIT TITLE', 
          'OK,Cancel'  
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>I get the error </p>
  
  <blockquote>
    <p>12-27 21:28:17.998: D/CordovaLog(17212): Uncaught TypeError: Cannot
    call method 'confirm' of undefined 12-27 21:28:17.998:
    D/CordovaLog(17212): file:///android_asset/www/app.html: Line 227 :
    Uncaught TypeError: Cannot call method 'confirm' of undefined</p>
  </blockquote>
  
  <p>As you can see I have loaded all the necessary scripts, and I am calling the  <code>navigator.notification.confirm</code> inside <code>$(document).ready</code></p>
  
  <p>Not sure why I am getting this error. Please help.</p>