如何编写AJAX / ASP.NET Web应用程序的离线版本 [英] How to write an offline version of an AJAX/ASP.NET web application

查看:119
本文介绍了如何编写AJAX / ASP.NET Web应用程序的离线版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有使用AJAX来交谈ASP.NET Web服务的Web应用程序。我们想编写可脱机使用另一个版本。我们需要能够尽可能多的重新使用现有code越好。我们应该考虑什么样的方法?

We have a web application that uses AJAX to talk to an ASP.NET web service. We would like to write another version that can be used offline. We need to be able to re-use our existing code as much as possible. What approaches should we consider?

该应用程序正在使用XmlHtt prequest到从服务器获取动态数据。显然,离线版本将无法交谈服务器,但它确实需要倾诉的东西!我敢肯定,在客户端将努力上安装IIS或卡西尼号,但我希望一个简单的解决方案。是否有JavaScript来谈谈一些外部code没有其他的办法?

The app is currently using XmlHttpRequest to get dynamic data from the server. Obviously the offline version will not be able to talk to the server, but it does need to talk to something! I'm sure installing IIS or Cassini on the client would work, but I was hoping for a simpler solution. Is there no other way for JavaScript to talk to some external code?

推荐答案

有大量的离线网络应用nowaday。它只是从AJAX发展。

There are plenty offline web apps nowaday. It simply evolve from AJAX.

例如:

WoaS(上一棒/ stickwiki维基),Tiddly维基,

WoaS (wiki on a stick / stickwiki), Tiddly Wiki,

谷歌文档和Gmail将是离线状态。

Google doc and Gmail is going to be offline.

您不需要网络服务器在离线模式下运行这些web应用。只是存储在客户端(通常为XML)所需的数据,脚本。

You don't need a webserver to run these webapps in offline mode. Just store the required data, scripts on the client side (usually as XML).

这篇关于如何编写AJAX / ASP.NET Web应用程序的离线版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆