I have a customer that doesn't always have a solid internet connection. They are using our PHP app to take attendance. Basically, they just toggle a switch to say present or absent, and with ajax we update the database on the web server. What do you think the simplest way would be to let her take roll for 3-4 classes while offline, and then refresh the server db once she is back online. Any ideas?