自动在服务器上为不同用户保存xml文件 [英] Auto Save xml file on server for different users

查看:84
本文介绍了自动在服务器上为不同用户保存xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,用户在其中进行树列表控件中的数据填充.然后将树列表中的数据保存在服务器上的XML文件中.我想通过使用Ajax计时器实现此功能自动将数据保存在服务器上.实现此功能..数据保存还必须适合于不同用户填充不同数据..
例如.g邮件如何保存草稿,类似的功能,当我们提交文章时,Code Project如何使用自动保存.说5秒.因此,您可以做的是捕获最后的按键时间,如果它大于10秒,则将其与当前时间进行比较,然后调用js函数(可能使用Ajax代码在服务器上保存数据).


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.

解决方案

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.


这篇关于自动在服务器上为不同用户保存xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆