Forum: Ruby on Rails Q: periodically_call_remote ( how to make it execute just on

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Andrew C. (Guest)
on 2006-04-04 01:05
(Received via mailing list)
I posted this ealier on the web forums but noticed a similar question
about this function and one user responded to try this list instead. If
anyone can help I would greatly appreciate your suggestions.

Q:

Is there a way to use periodically_call_remote to run just one time
instead of every ':frequency' seconds?

I tried putting the call inside the div container thinking it would be
overwritten when the first remote call replaced the div contents but no
such luck.

I'd basically like to simulate link_to_remote but not require a click
and have it performed automatically like periodically_call_remote.

Any help/suggestions would be appreciated.

Thanks,
Andy
Bruno C. (Guest)
on 2006-04-04 01:15
(Received via mailing list)
Look at the `delay` RJS method, maybe this can help you:

http://api.rubyonrails.com/classes/ActionView/Help...
This topic is locked and can not be replied to.