php - How to make my WebApp available offline? -


if using google calendar, may noticed have "offline" feature. can use google calendar if offline. interested know strategy using enable feature?

i have php/mysql invoicing application, , i want allow users use system if offline, when internet back, data should synced online version.

i don't want install codes in client's pcs, hope if has idea allows me same did in google calendar or other idea may help.

there javascript variable called localstorage. can store there queue of commands executed , can can implement synchronize function, this:

function synchronize(queue) {     while (!queue.isempty()) {         queue.pop().execute();     } } 

you can use else, including offline storage, remember offline storage supported html5, if want support older browsers, need have fallback logic well.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -