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(
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
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
3 matches
Mail list logo