How to open another page in HTML5 Builder Server Mobile Application
来源:互联网 发布:java 泛型方法调用 编辑:程序博客网 时间:2024/05/19 15:42
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.
1 Answer
If you are using client-side AJAX navigation, which is enabled by default in mobile pages, you can change page with this:
$.mobile.changePage("TargetPage.php");
- How to open another page in HTML5 Builder Server Mobile Application
- How to use HttpWebRequest to post data to another page which is on another server
- How to develop a window mobile application
- QT29 how to use QWebView and open web page in QWebView
- How to load "CodedUItestmethod" in another "consoleapplication".
- How to open application with notification from LocalNotifications plugin in PhoneGap
- How to grab web page in chinese
- How to redirect page in JavaScript
- How to debug mobile safari in iOS
- How to open PDF files in sharepoint
- how to open broswser in Swing
- How to use log4net in C# application
- How to build an OLE DB application for SQL Server CE in Visual Studio 2005
- How to launch another process in sandbox on Mac
- How to use another indicator in your code?
- How to Load XML with JavaScript on an HTML5 Page
- Show how to print a table in a html page
- how to display different title in one master page
- 黑马程序员java学习<基础加强>—交通灯
- 黑马程序员——java基础之多线程基本概念
- Android框架
- 共轭检验
- 【Java学习笔记】集合框架(一)
- How to open another page in HTML5 Builder Server Mobile Application
- 判断两个日期是否超过24小时!
- sqlserver 触发器
- ZwQuerySystemInformation枚举进程
- 黑马程序员java学习<基础加强>—银行业务调度系统
- PspCidTable句柄表辅助检测隐藏进程
- xml files merger
- 今天发现一个问题终于解决了
- [LeetCode] Multiply Strings