Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap + JQuery Mobile paths
    text
    copied!<p>UPDATE:</p> <p>I think my issue is related to this: <a href="https://github.com/jquery/jquery-mobile/issues/991" rel="nofollow">https://github.com/jquery/jquery-mobile/issues/991</a></p> <p>I haven't had time to try the patch yet. Anyone else know anything about this? </p> <p>COMMENT:</p> <p>It has something to do (I think) with the way ajax calls are made between phonegap and jquery mobile and jquery.</p> <p>I know the code works because putting the EXACT same code in the index.html page vs putting it in the external page works.</p> <p>The files are in the www folder, and are visible in xcode.</p> <p>If I take the jquery mobile include out, the link to the page works fine, and the page loads, so I know it is related to the ajax file:// stuff</p> <p>============================================</p> <p>Using phonegap 0.9.5 and jquery 1.5.2 with jquery mobile 1.0a4.1</p> <p>Platform OSX xCode 3</p> <p>If I use jquery mobile pages all inside one index.html file, everything works fine.</p> <p>But when I try to move a secondary page like this:</p> <p>index.html search.html</p> <p></p> <pre><code>&lt;div data-role="page" data-theme="b" id="jqm-home"&gt; &lt;div data-role="header" data-theme="a"&gt; &lt;h1&gt;Page Title&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b"&gt; &lt;li data-role="list-divider"&gt;Search By&lt;/li&gt; &lt;li&gt;&lt;a href="search.html"&gt;Username&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p></p> <p>I end up just getting the spinner forever.</p> <p>I have tried:</p> <p>/www/search.html</p> <p>/search.html</p> <p>file://www/search.html</p> <p>All of those cause an instant page load failure.</p> <p>if I just use the relative path in the code, I get the infinite spinner.</p> <p>I also tried moving to jquery 1.6, and it didn't make any difference.</p> <p>What am I missing here?</p>
 

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