Below is my code to open the home.html page upon successful login to the Android application. But when I click on the login button, it loads the same index.html page (it doesn't open home.html).
function check(form) {
if(form.password.value == "moleac123") {
if(form.remember_me.checked) {
window.localStorage["password_remember"] = "moleac123";
var date_to_remember = new Date().getTime();
window.localStorage["date_remember"] = date_to_remember.toString();
}
$.mobile.pageLoadErrorMessage = "";
window.location="home.html";
}
else {
alert("Invalid Password");
$.mobile.pageLoadErrorMessage = "";
window.location="index.html";
}
}
I got an error below my logarithm. (Please note that my version for mobile phones is 1.3.2, and I tried to upgrade to 1.4.5, however the same problem)
Error:
D/JsMessageQueue﹕ Set native->JS mode to null D/CordovaWebViewImpl﹕ onPageDidNavigate(file:///android_asset/www/home.html)
W/BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 20994
D/CordovaWebViewImpl﹕ onPageFinished(file:///android_asset/www/home.html)
W/BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 20994
W/BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 20994
Note. This works fine in Android 4.1.X version, this problem occurs in Android5.0.
I ask for advice on how I can fix this.
source
share