We are still rookie developers in HTML5 Builder, creating a Server Mobile Application.
We would like to know how to open another page (page2.php) using javascript.
Basically, the user will fill in a form, when the 'Submit' button is clicked, a few basic checks are done in javascript (like to check if all fields are filled in) and if validation is successful, the app needs to load the next page.
The following code have been tried:
window.location = "page2.php";
window.open('page2.php','_parent');
Both of these work fine when the app is running in a browser on the pc, but it does not work on the deployed app on Android, which will be the end product. We also tested it on more than one device with different versions of Android, with same result.
Any help will be appreciated, thank you.
本文讨论了在一个HTML5构建的移动应用中使用JavaScript进行页面跳转的方法。当尝试在不同Android设备上实现从一个页面跳转到另一个页面的功能时遇到了问题,并详细记录了所尝试的解决方案及遇到的挑战。
2344






