Google pagecreator uses AJAX to periodically save the document. If AJAX fails to save the document, there will be an error visible on the page and a link to reopen the connection. When that link is clicked, it uses ajax to recreate the connection and after that user can save normally. No information lost. If user is going to leave from the page to for example main menu and the page was not autosaved, there will be a javascript alert saying that the document is not autosaved and usually it means that the connection to server has lost and need to click the reconnect link..
I don’t know how this all is implemented and how it would fit to MODx, but I noticed that someone allready made an
ajax enabled saving for documents and the like.. could it be refined to be fully working solution and with an option too to enable auto saving via ajax while writing a document. And if ajax save fails, there would be a link to recreate the connection / session (or automated) and documents can be saved without information loss..
I noted that the
auto save feature has been discussed here too, but I don’t mean that it would be forced to use autosave. Just an ajax enabled saving of documents and if save fails, possible to recreate connection/session via ajax without the browser refreshing at anytime.
So... Can it be done? I noticed that there’s some issues with character encodings maybe when using ajax, is this true?