3 ms·
For posting data, you could check connection status (or $.ajax error callback) and if the client cannot access then store the data locally using localStorage [1
by labpdx 13y ago
For posting data, you could check connection status (or $.ajax error callback) and if the client cannot access then store the data locally using localStorage [1]. When the connection becomes available again then post all data from localStorage to the end-point and clear out local store.
[1] http://www.w3schools.com/html/html5_webstorage.asp http://www.w3schools.com/html/html5_webstorage.asp
- blaco 13y agonice, sounds like a start point :) thanks. B.