php - Storing data offline until online is connected -


i planning on making web app feedback. device used on isn't connected online.

the idea have store input offline until reaches connection. device in question ipad , target database mysql.

ive seen web storage wondering offline site altogether 1 refresh page accident , no connection fail. ideally use php,mysql , html5. thinking originaly store data i'm local storage use ajax keep pinging connection. i'm looking elegant way of doing without suffering data loss. suggestions appreciated!

this absolutly possible modern browser. can use service workers make page avalible offline, can load , refresh site offline. storage can use webstorage or indexeddb sayed. , detecting internet connection, there events provided browser.

this concept called progressive webapps, example can @ google io page of year


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -