I'm implementing a web system to manage some data from my company. We are using MVC (more specically ASP.NET MVC 4), in which I'm completely new to.
The problem I'm having is that we planned to use autosave, just like GMail. We were planning on using change events queuing and once in a while submit changes through ajax. On a first thought I would use JavaScript, not sure though if that's the best way for MVC. Another trouble that I'm having is that some of the information the user will enter is not inside forms, but in a table instead. Also the layout of the page is a little sparse and I don't believe I can wrap all the inputs into a single form or even if I should do it.
My questions are:
- What is the best way to implement autosave using MVC, should I use or not JavaScript?
- Is there any library in JavaScript or a feature in ASP.NET MVC to implement the queuing or should I do it by hand?
- Also, can I use form to wrap table rows?
Note: I've seen some suggestions to use localstorage or others client persistency, but what I need is server persistency, and we don't even have a save button on the page.
Thanks for the help in advance ;)
See Question&Answers more detail:os