Is there frequency option in link_to_remote?


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.

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.

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.


Thanks for the reference.