22.01.2018, 09:09
(This post was last modified: 22.01.2018, 09:40 by Erwin van der Zwart.)
Hi,
Try this:
Or
BR,
Erwin
Try this:
Code:
$(function(){
var previousPlanId = 0;
$(document).on('vclick click', function() {
writecurrentpage();
});
function writecurrentpage(){
if ( currentPlanId == 1 && currentPlanId != previousPlanId ) {
grp.write('1/1/1', currentPlanId);
previousPlanId = currentPlanId;
}
}
});
Code:
$(function(){
var previousPlanId = 0;
setInterval(function(){
if ( currentPlanId != previousPlanId ) {
grp.write('1/1/1', currentPlanId);
previousPlanId = currentPlanId;
}
}, 1000);
});
BR,
Erwin