[Rails] Re: periodically autosave form

2009-05-11 Thread Ram
In this case, he does not even have to observe the form. He can just call a script on page load which shoots off an Ajax submit and update on the form every minute or so. On May 9, 8:26 am, Glen wrote: > I am not sure about your situation, but  I would use observe_form set > and :frequency to s

[Rails] Re: periodically autosave form

2009-05-08 Thread Glen
I am not sure about your situation, but I would use observe_form set and :frequency to seconds at which changes to this field will be detected. This should work with the existing form. See the documentation. http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html --~--~--

[Rails] Re: periodically autosave form

2009-05-08 Thread Me
A caveat, It has to be done with the form already having been created. So doing an observe form with a form id will not work as the form id id being generated by rails as it is in edit mode. On May 8, 9:38 pm, Me wrote: > Would someone show how to implement a periodical save of a form in the >