作者TonyQ (骨头)
看板Ajax
标题Re: [问题] 想请问一下"文章自动储存"的作法
时间Thu Mar 8 22:18:24 2007
※ 引述《WLittleWA (小哇)》之铭言:
: 我想研究的是像gmail写信时
: 固定几分钟就会自动储存成草稿
: (某些部落格文章编辑也有同样的功能)
: 有些问题想请教一下前辈
: 1. 是不是使用 javascript 在背後将栏位内的value写进资料库里
: 2. 固定几分钟执行这是如何实做的
: 还是我误解了,是非固定时间和其他动作触发储存的动作?
setTimeOut可以做定期的排成
写function用这个跑递回就可以达到你说的效果了
主要的 controler 一定是Javascript,
至於要怎麽做,就参考一下板上关於httprequest的讨论吧。XD
: 3. 有推荐的相关资料可以看吗?或是哪个library比较好用?
: 希望有前辈能给我一个方向,谢谢!!!!
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone
everything
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.27.68
1F:推 WLittleWA:感谢~~~~ 03/08 23:35