I would like some recommendations on the best way to handle errors in AJAX-powered applications. Specifically, the methods used to log the errors and what do you do to address them.
An obvious priority is that I don't want any user input lost. I was hoping to come up with some sort of fallback mechanism so that if an AJAX post fails, a natural form POST can be attempted using the same data. Any suggestions?