Search code examples
mysqlhtmlweb-applicationslocal-storagesmartphone

HTML5 Localstorage to Remote storage query


I have created a HTML5 webapp that runs quite nicely on most smartphones. Program can accept input from a user, store the information, display it, edit it, delete etc. Works fine.

I was wondering if there is yet a standard way fo sychronising this information with a remote MYSQL server, heck at this point I would settle for being able to post the information directly to a remote server, completely skipping localstorage.

I have looked at the websqlsync on github, but having limited success getting it working.

Any guides, working examples, tutorials or general pointers or best practice at getting html5 localstorage onto a MYSQL server greatly appreciated.


Solution

  • Why don't you save the localStorage object as a JSON string, and pass that to the remote server? What do you want to do with the data on the server?