views:

41

answers:

1

Do I need to implement my own sync methods in order to make an offline web app (html+css+js) stay up to date with changes made on the server (and viceversa)? I'm using MySQL on the server side.

I read http://stackoverflow.com/questions/3106191/ with some pointers but I think they're talking about native applications when they mention CFUUIDCreate and I wander if this is possible for the Web.

Does someone have some code to share or maybe can point me in the right direction?

Thank you!

P.S.: I hope my english is not that rusty ;)

A: 

Look at the offline cache:
http://www.webreference.com/authoring/languages/html/HTML5-Application-Caching/
http://www.google.com/search?q=offline+cache+html5
http://www.slideshare.net/search/slideshow?q=offline+cache

Jethro Larson
Thanks but I've read about this stuff and it covers cache and so but I'm still in doubt about how to proceed with database synchronization.
expora
Your request is vague, I don't know how to respond. Any sync will be over http. There's no magic tricks. I know there's html5 databases as well but I'm not sure if that'll help you.
Jethro Larson
It's not easy. I think in spanish. Not the best way, I know. I'm just looking for some help trying to understand how to write an implementation to sync two databases, one HTML5 client-side database and one MySQL database accessed by PHP. Using an UUID? Maybe using auto incremented IDs in both sides and timestamps everywhere? Are there any standards related to this? ... Are JSON or XML an option to move this data? Can I move it through a web socket)?
expora