Note that there are some explanatory texts on larger screens.

plurals
  1. POHash navigation between two HTML pages in phonegap android
    primarykey
    data
    text
    <p>Hi i am hitting my head on wall for two days for this.I am learning jQuery and phonegap and facing following issue in developing an application.</p> <p>I have a simple scenario in phonegap application.</p> <p>I have two HTML pages say index.html and page2.html.</p> <p><strong>index.html is having two or more divs with data-role="page"</strong> for ex.</p> <pre><code>&lt;div data-role="page" id="login" data-theme="d" "&gt; </code></pre> <p>and </p> <pre><code>&lt;div data-role="page" id="main" data-theme="d" "&gt; </code></pre> <p>page2.html is a list for ex.</p> <pre><code>&lt;ul id="test" data-role="listview" data-inset="true"&gt; &lt;li data-icon="false"&gt;&lt;a href="index.html#main" rel="external" id="othertest"&gt; go to main &lt;span class="listdetails"&gt; &lt;/a&gt; &lt;/span&gt; &lt;/li&gt; </code></pre> <p>So here problem is when i click on this it is crashing with dialog Application Error.</p> <blockquote> <p>A Network Error occurred. (file:///android_asset/www/index.html#main)</p> </blockquote> <p>And here is my log cat output.</p> <p>**</p> <blockquote> <p>11-30 01:01:33.296: D/DroidGap(25758): onMessage(onPageStarted,file:///android_asset/www/index.html#main) 11-30 01:01:33.296: D/Cordova(25758): CordovaWebViewClient.onReceivedError: Error code=-1 Description=A network error occurred. URL=file:///android_asset/www/index.html#main 11-30 01:01:33.296: D/DroidGap(25758): onMessage(onReceivedError,{"errorCode":-1,"url":"file:///android_asset/www/index.html#main","description":"A network error occurred."})</p> </blockquote> <p>**</p> <p>I have tried window.location , window.location.href,onPageChange() of jquery etc...</p> <p>But nothing works.</p> <p>Any solution to achieve this ??</p>
    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