简体   繁体   English

在断开状态下运行jQuery移动Web应用程序?

[英]Running a jquery mobile web app in a disconnected state?

I've been toying with writing a web app using jquery mobile which makes use of forms (cehckboxes, text fields, combo boxes). 我一直在用jquery mobile编写一个使用表单(cehckboxes,文本字段,组合框)的Web应用程序。 The tasks the app requires are fairly trivial but the information needs to be updated and sent to a server. 应用程序所需的任务相当琐碎,但信息需要更新并发送到服务器。

So my question is, say someone uses the app, gets a bunch of data from a server, then loses connection. 所以我的问题是,假设有人使用该应用程序,从服务器获取了大量数据,然后失去连接。 Will the browser still remember the form fields input and could the user still navigate between pages? 浏览器是否仍会记住输入的表单字段,并且用户仍可在页面之间导航? From my understanding jquery mobile places all its pages in the same 'webpage' so it's not like it will have to be constantly loading up new data from the server. 根据我的理解,jquery mobile将其所有页面都放在同一个“网页”中,因此,它不必不断从服务器加载新数据。

My idea is that I'll run some script in the background to check for a connection to a server and when it gets this connection it can go ahead and sync data with the server. 我的想法是,我将在后台运行一些脚本来检查与服务器的连接,当它获得此连接时,它可以继续进行并与服务器同步数据。

Is this possible or is it a pipe dream? 这可能吗?还是白日梦?

对于jquery mobile,它将所有数据附加到同一页面中,因此用户只能使用那些已经单击的链接来查找用户尚未触摸的链接,这会造成问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM