[Rails] Re: cancel periodically_call_remote?

2010-06-10 Thread Vicer Ontero
Micah Winkelspecht wrote: > def periodically_call_remote(options = {}) > variable = options[:variable] ||= 'poller' > frequency = options[:frequency] ||= 10 > code = "#{variable} = new PeriodicalExecuter(function() > {#{remote_function(options)}}, #{frequency})" > javascript_tag(

[Rails] Re: cancel periodically_call_remote?

2010-03-02 Thread Robert Walker
Jason Dely wrote: > This seems to be what I was loooking for. > Now what I would like to know is how can I restart the call? > Can I push it from the server based on new data now available? I ran into these issue myself. After much struggle and frustration, it dawned on me that doing periodic upd

[Rails] Re: cancel periodically_call_remote?

2010-03-01 Thread Jason Dely
This seems to be what I was loooking for. Now what I would like to know is how can I restart the call? Can I push it from the server based on new data now available? What I am trying to accomplish is to only update a dom when data in the database has changed. Thanks Micah Winkelspecht wrote: > I