开发者

rails, peridodic_call_remote, update form

I want to have a form saved every 10 seconds or so, or maybe onchange. I'm using rails and have tried observe_fields and periodic_remote_call, but I don't know how to send a full full parameter with periodic an开发者_Python百科d how to send a full form with observer.


There's a nice post here: http://www.elevatedcode.com/articles/2006/12/20/using-observe_form/


observe_form seems to be your solution. Read the documentation for the parameters (so it does what you want, since it seems not very clear yet) and it will send updates upon changes or timed periods to your controller.

Also add an action method to the controller which processes the information send to it, by storing it somewhere.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜