Is there frequency option in link_to_remote?

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.

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/
classes/ActionView/Helpers/PrototypeHelper.html#M000525) - it may be
more what you’re looking for.

Steve

Thanks for the reference.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs