my problem is that———i have many input controls on my form, in my asp.net multiuser web application, when user enter values in half of the controls and power is switched off,user looses all of entered data ,and he has to fill the form from begining .
so i want to store all user inputs in an xml file through javascript on lost focus of each control(every time regenerating the new file and deleting old file) and store that in a file on client side.i have tried it to store in cookie ,but the xml string size is more than cookie size limit.
also i want to store the xml file data to database at last from server side.
so is there any problem in my approach ? or any other way to solve my purpose ?
any suggesion will be appreciated .
thank you.
You can use this way as a base. This is using only js. Its better to save as json than xml on the clientside localstorage. No JQuery: