Click here to Skip to main content
15,885,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had one web application in which user do data filling in Tree List control.Then data from tree list is saved in XML file on server.I want to implement this feature auto data save on server by using ajax timer.How to implement this feature..Also data saving must be appropriate for different users filling different data..
example.. how g mail saves draft,similar functionality how Code Project uses auto save when we submit articles.
Posted

1 solution

Normally developer write their save logic when user stop typing for say 5 sec. So what you can do is capture the last keypress time and compare it with current time if it's greater than 10 sec then call js function probably using Ajax code to save data on the server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900