离线网站

发布于 2024-08-23 02:33:47 字数 243 浏览 8 评论 0原文

需要有一个离线网站。就像当连接可用时,客户端或 PC 上的浏览​​器将下载所需的内容,而当没有互联网时,客户端将访问仍然可用的先前下载的数据。

在讨论过程中,有人建议使用 http://code.google.com/apis/gears/

请让我知道还有哪些其他框架可用于解决此问题。

There is a requirement to have a offline website. It is like when the connection is available the client or the browser on the PC will download contents required and when there is no internet the client will access be still available with the data which was downloaded earlier.

During the discussion there was a suggestion to use http://code.google.com/apis/gears/.

Kindly let me know what are all the other frameworks available to solve this problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我家小可爱 2024-08-30 02:33:47

正如 greg 所说,gears 确实会被 google 淘汰,html5 应该取代离线 web 应用程序的 gears。

最重要的规范:

  • appCache”(在本地存储文件)
  • localStorage" (用于存储字符串)
  • "webDB" (用于存储结构化数据,但不会成为 html5 的正式部分)。

和一些例子;

as greg notes, gears indeed will be phased out by google, html5 is supposed to replace gears for offline webapps.

most important specs:

  • "appCache" (to store files locally)
  • "localStorage" (to store strings)
  • "webDB" (to store structured data, will not be official part of html5 though).

and some examples;

ぇ气 2024-08-30 02:33:47

HTML 5 将包含 Gears 中以前提供的许多功能。 Gears API 博客有一个标题为 Hello HTML5 的条目,其中详细解释了有关这。 Google 已停止 Gears 本身的开发,并将精力集中在 HTML 5 上。

HTML 5 will contain many of the features that were previously available in Gears. The Gears API Blog has an entry titled Hello HTML5 that explains more about this. Google has stopped development on Gears itself and is concentrating their efforts on HTML 5.

悍妇囚夫 2024-08-30 02:33:47

Silverlight(或者我猜Flash)也可以用作文件存储。但对我来说,这有点过度使用。可能最好考虑一下 lighttwait desctop 应用程序。 Silverlight 桌面模式?还是 Adob​​e Air?

Silverlight (or I can guess Flash) also could be used as offile storage. But as for me this is kind of overuse. May be this is better to think about ligtwait desctop application. Silverlight desktop mode? Or Adobe Air?

不打扰别人 2024-08-30 02:33:47

节省自己一些搜索时间:-) --->>有许多已经开发的 JavaScript 库可以使离线存储甚至在线同步变得更加容易。有关此主题的大量现有库在 github 上。请注意 JayData(开源且有商业支持)PouchDB(开源且非常活跃,并且具有在线同步功能)。其他看起来不错的可能:TaffyDB、Store.js、Kizzy、BankersBox。在撰写本文时,我检查了这里未提及的其他所有内容,它们要么很旧,要么很小,要么已经不存在了 - 所以希望我能为您节省一些时间。另一种基于商业的产品是 SequelSphere,它对个人或 10 名或更少用户的商业用户免费。

Save yourself some time searching :-) --->> There are many already spun JavaScript libraries to make offline storage, and even syncing when online, easier. A large list of existing libraries on this topic on github here. Notice JayData (open source and commercially backed) PouchDB (open source and very active and has a sync when online feature). Other possible ones that look decent: TaffyDB, Store.js, Kizzy, BankersBox. As of this writing, I checked out each of the other ones not mentioned here and they are either old, very small or defunct - so hope I can save you some time. One other commercially based one is SequelSphere which is free for individual or commercially with 10 users or less.

居里长安 2024-08-30 02:33:47

另一种选择是使用 server2go,它可以为网站设置独立的 Web 服务。然后与名为 bitsync 的应用程序结合使用,它可以同步离线和在线数据。

Another option is to use server2go this can setup a stand alone web service with the website. Then used in conjunction with an app called bitsync it could sync the offline and online data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文