Forum: Ruby on Rails Is there frequency option in link_to_remote?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D51a24ae1017f53158d70b621494255d?d=identicon&s=25 Bontina Chen (abon)
on 2007-01-30 12:50

I have a dynamic score for each item on a page.
I would like the score be reloaded for a certain time.
I'm thinking about firing a link_to_remote every , say 1 second
like this.
  <div id="under" display = "none">
  link_to_remote "Delete this post", :update => "posts",
    :url => { :action => "destroy", :id => }
    :frequency => 1

Too bad, there is no frequency in link_to_remote.
Any other way I can accomplish this task.
6d57db44c5a4e0721cc7f78cf0ce308a?d=identicon&s=25 Stephen Bartholomew (steveb)
on 2007-01-30 13:13
(Received via mailing list)
link_to_remote is really just meant for people to click on - not as a
triggable event.

Have a look at periodically_call_remote (
classes/ActionView/Helpers/PrototypeHelper.html#M000525) - it may be
more what you're looking for.

D51a24ae1017f53158d70b621494255d?d=identicon&s=25 Bontina Chen (abon)
on 2007-01-30 13:56
Thanks for the reference.
This topic is locked and can not be replied to.