Re: Auto refresh field

joserwan
Wed, 24 Sep 2008 12:43:05 -0000

Hello,

Look at the prototype helper : periodically_call_remote
It will call an action each X second. In this action, you should have
a render like :

render :update do |page|
   page[''my_field_id''].replace_html
" updated! "
end


On Sep 24, 4:14 am, Alex2101
<legars2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hi,
>
> I would to know if it is possible to automaticly refresh some
> particular field ?
> Clearly, I have a model called "productions" with fileds
"name" and
> "numbers".
> Another application update fields "numbers" of the mysql table.
> On an "index.html.erb", I have the list of "production"
and i would
> like to view automaticly when value of "numbers" change.
>
> First of all, is it possible ?
> Because I may have many records, and in a close futur, more fields to
> monitor, I would like to update just choosen filed and not the whole
> page.
>
> Thanks in advance.
>
> PS : I just begun with ror...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com