# Change the interval in periodically\_call\_remote

**URL:** <https://www.ruby-forum.com/t/change-the-interval-in-periodically-call-remote/181544>\
**Category:** Rails\
**Created:** [January 13, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/change-the-interval-in-periodically-call-remote/181544 "2010-01-13T14:16:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [January 13, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/change-the-interval-in-periodically-call-remote/181544/1 "2010-01-13T14:16:58Z")

</div>

I’d like to make a div that updates itself. That div will contain a  
timer. If there is an hour left, I’d like to refresh it every 10  
minutes, but if the time has only one minute left, I’d like to have it  
call the server every second.

If the periodically\_call\_remote is inside the div, will it be replaced  
when the div is updated?

If not, is there a way to remove or update the  
periodically\_call\_remote? I don’t see a way to assign it a handle for  
updating its internals.

Thanks for any help,  
Dino
