# Is there frequency option in link\_to\_remote?

**URL:** <https://www.ruby-forum.com/t/is-there-frequency-option-in-link-to-remote/83879>\
**Category:** Rails\
**Created:** [January 30, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/is-there-frequency-option-in-link-to-remote/83879 "2007-01-30T12:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 30, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/is-there-frequency-option-in-link-to-remote/83879/1 "2007-01-30T12:50:52Z")

</div>

Hi,

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 =\> post.id } :frequency =\> 1 

Too bad, there is no frequency in link\_to\_remote.  
Any other way I can accomplish this task.  
Thanks.

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 30, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/is-there-frequency-option-in-link-to-remote/83879/2 "2007-01-30T13:13:07Z")

</div>

link\_to\_remote is really just meant for people to click on - not as a  
triggable event.

Have a look at periodically\_call\_remote ([http://api.rubyonrails.org/](http://api.rubyonrails.org/)  
classes/ActionView/Helpers/PrototypeHelper.html#M000525) - it may be  
more what you’re looking for.

Steve

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 30, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/is-there-frequency-option-in-link-to-remote/83879/3 "2007-01-30T13:56:33Z")

</div>

Thanks for the reference.
