English 中文(简体)
Webapp able to work offline !
原标题:

I have to design an webapp that has the capability of working offline.

So there are many working points that in normal mode work online , connected to a central server.

Now there are moments when for different reasons , the central server might not be available. (no internet ,server crash etc) so then is needed to enter in offline work mode. Is not required to work fully just to do some work because clients should not wait , so invoicing should be possible (concrete case).

A custom solution I already have in mind but I am wondering if you know a framework or something that does such things already.

Thank you !

最佳回答

We wrote a desktop app for hundreds of employees to use on their laptops. It used database replication to merge the data from the laptop copy of the database to the server copy of the database. The amount of data contained in the database was significant -- product information, customer contact information, and so on. That was all needed for the rep to be able to create sales orders and invoices and the like. It was crucial that the rep be able to use the software all the time, not just once in a while when they had connectivity. However, this approach does have its challenges -- if the local databases don t get synched up frequently, data at both ends becomes stale, plus you have to deal with conflicing updates.

If the amount of database information needed locally for working disconnected isn t huge, you definitely can take advantage of the new HTML5 offline storage and use a website.

I think that the critical factors here are how much data the user needs when they are working offline, how fresh the data needs to be, and what percentage of time they will be working online vs. offline.

问题回答

If your app is html/javascript, use the HTML5 application manifest. See the following resources

http://www.w3.org/TR/offline-webapps/ http://www.webreference.com/authoring/languages/html/HTML5-Application-Caching/

You can use Google Gears.

Here is another link: http://www.scriptol.com/ajax/google-gears.php





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签