Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap and Jquery mobile registration, phonegap 2.9.0
    primarykey
    data
    text
    <p>I am using phonegap 2.9.0 in Phonegap Build, and testing on my Android device. </p> <p>I am not sure how to register Phonegap and Jquery Mobile events, so I added the following code (found here <a href="https://stackoverflow.com/questions/8275313/correct-event-registration-in-the-phonegap-jquery-mobile-application">Correct event registration in the &#39;PhoneGap + jQuery Mobile&#39; application</a>) at the top of my boarddo.js file ... and nothing happens, everything is locked at the splash page :</p> <pre><code>var jqmReadyDeferred = $.Deferred(); document.addEventListener("deviceReady", deviceReady, false); function deviceReady() { deviceReadyDeferred.resolve(); } $(document).one("mobileinit", function () { jqmReadyDeferred.resolve(); }); $.when(deviceReadyDeferred, jqmReadyDeferred).then(doWhenBothFrameworksLoaded); function doWhenBothFrameworksLoaded() { console.log('both frameworks are loaded'); alert('both frameworks are loaded'); //....NOTHING POPS UP !! } //then I do my things : $(document).on('pageinit','#splash-page', function(){ //... }); function checkConnection() { //... } $(document).on('pagebeforecreate', '#welcome-page', function(){ //... }); $(document).on('pageinit','#welcome-page', function(){ //... }); </code></pre> <p>I am confused about how to register events for Phonegap + Jquery mobile apps as I have seen different opinions everywhere.</p> <p>In my index.html, is the call to the js files in the correct order ? :</p> <pre><code>&lt;script src="js/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.mobile.config.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.mobile-1.3.2.js"&gt;&lt;/script&gt; &lt;script src="js/jquery-geturlvar.js"&gt;&lt;/script&gt; &lt;script src="js/functions.js"&gt;&lt;/script&gt; &lt;script src="js/boarddo.js"&gt;&lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload