Displaying 2 results from an estimated 2 matches for "ontimerev".
Did you mean:
ontimer
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...llback = callback;
this.frequency = frequency;
this.currentlyExecuting = false;
this.lastExec = this.now();
this.paused = false;
this.pausedAt = 0;
this.accumTimePaused = 0;
this.registerCallback();
},
registerCallback: function() {
this.timer = setInterval(this.onTimerEvent.bind(this),
this.frequency * 1000);
},
execute: function() {
this.callback(this);
},
pause: function(){
if (this.paused) return;
this.stop();
this.paused = true;
this.pausedAt = this.now();
return true;
},
timeLeft: function(){
if(this.paused){
re...
2006 Nov 10
8
PeriodicalUpdater and popups.
...t;/script>
kicker.html
<input type="button"
onclick="window.open(''http://localhost/popup.html'', ''chat'',
''width=600,height=500,resizable=yes,status=yes'')" value="Popup" />
The error I get is:
"this.onTimerEvent.bind is not a function"
Anyone else got this problem, or can replicate it, and even perhaps
has a solution, I''d be very happy! =)
PS. If I reload the popup after it''s loaded, it works just fine.
--~--~---------~--~----~------------~-------~--~----~
You received this me...