search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

AutoRefresh for JavaScript

Asked by Aleksey
10 years ago.

Do you have any plans for implementing AutoRefresh for JavaScript?

Answer posted by Dan Letecky [DayPilot]
10 years ago.

AutoRefresh is now supported in the JavaScript version (build 7.7.813). See the sandbox:

http://javascript.daypilot.org/sandbox/

If enabled during initialization (autoRefreshEnabled = true), it will fire onAutoRefresh event in the specified intervals:

dp.onAutoRefresh = function(args) {
  console.log("refreshing, " + args.i);
};
Comment posted by Aleksey
10 years ago.

Strange.

I put in my code this lines:
dp.AutoRefreshInterval = 10;
dp.autoRefreshMaxCount = 10;

dp.onAutoRefresh = function(args) {
alert("refreshing, " + args.i);
};

But noting happens. I couldn't уму get into debug mode.

Comment posted by Aleksey
10 years ago.

and this line too

dp.AutoRefreshEnabled = true;

Comment posted by Dan Letecky [DayPilot]
10 years ago.

You should use lowercase first letter:

dp.autoRefreshInterval = 10; 
dp.autoRefreshMaxCount = 10;
dp.autoRefreshEnabled = true;

dp.onAutoRefresh = function(args) { 
  alert("refreshing, " + args.i); 
};

Comment posted by Aleksey
10 years ago.

:))))) sorry for this stupid question. It works!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.