[
https://issues.apache.org/jira/browse/CB-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
RIL closed CB-3955.
-------------------
Resolution: Not A Problem
> With Jquery Mobile, sometimes pages will fail to load. Cordova errors are
> shown.
> ---------------------------------------------------------------------------------
>
> Key: CB-3955
> URL: https://issues.apache.org/jira/browse/CB-3955
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: Android 4.1.1
> Reporter: RIL
> Assignee: Joe Bowser
>
> changing pages using either mobile.changePage or window.location.href fails
> to fully load the specified page, and instead loads the page previous to that
> one.
> Here is an excerpt from a logcat showing the issue. The contactsSelect button
> does a window.location.href = "#message-page". Instead of loading
> #message-page, only an onPageFinished event is shown. Then, the previous page
> (in the HTML file), #events-page is loaded.
> 06-20 19:10:33.570: D/CordovaLog(7215): contactsSelect tapped
> 06-20 19:10:33.580: I/Web Console(7215): contactsSelect tapped at
> file:///android_asset/www/js/contacts.js:101
> 06-20 19:10:33.680: D/Cordova(7215):
> onPageFinished(file:///android_asset/www/index.html#message-page)
> 06-20 19:10:33.680: D/Cordova(7215): Trying to fire onNativeReady
> 06-20 19:10:33.680: D/DroidGap(7215): onMessage(onNativeReady,null)
> 06-20 19:10:33.680: D/DroidGap(7215):
> onMessage(onPageFinished,file:///android_asset/www/index.html#message-page)
> 06-20 19:10:34.511: D/Cordova(7215):
> onPageFinished(file:///android_asset/www/index.html#events-page)
> 06-20 19:10:34.511: D/Cordova(7215): Trying to fire onNativeReady
> 06-20 19:10:34.511: D/DroidGap(7215): onMessage(onNativeReady,null)
> 06-20 19:10:34.511: D/DroidGap(7215):
> onMessage(onPageFinished,file:///android_asset/www/index.html#events-page)
> 06-20 19:10:34.571: D/CordovaLog(7215): mobile active page = events-page
> 06-20 19:10:34.571: I/Web Console(7215): mobile active page = events-page at
> file:///android_asset/www/js/messages.js:72
> 06-20 19:10:35.322: D/CordovaLog(7215): mobile active page = events-page
> 06-20 19:10:35.322: I/Web Console(7215): mobile active page = events-page at
> file:///android_asset/www/js/messages.js:72
> Here is a log showing the case in which this issue does not occur, and in
> which the correct page is loaded. Whether it occurs or not appears to be
> random:
> 06-20 19:29:32.081: D/CordovaLog(8147): contactsSelect tapped
> 06-20 19:29:32.081: I/Web Console(8147): contactsSelect tapped at
> file:///android_asset/www/js/contacts.js:101
> 06-20 19:29:32.121: D/Cordova(8147):
> onPageFinished(file:///android_asset/www/index.html#message-page)
> 06-20 19:29:32.131: D/Cordova(8147): Trying to fire onNativeReady
> 06-20 19:29:32.131: D/DroidGap(8147): onMessage(onNativeReady,null)
> 06-20 19:29:32.131: D/DroidGap(8147):
> onMessage(onPageFinished,file:///android_asset/www/index.html#message-page)
> 06-20 19:29:33.142: D/CordovaLog(8147): mobile active page = message-page
> 06-20 19:29:33.142: I/Web Console(8147): mobile active page = message-page at
> file:///android_asset/www/js/messages.js:72
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira