06.02.2017, 17:20
(This post was last modified: 06.02.2017, 19:48 by Erwin van der Zwart.)
Hi Thomas,
Try this as custom JavaScript:
When writing value true to '1/1/1' (bit object) the client will reply with value false to confirm that the location.reload() has been triggered.
BR,
Erwin
Try this as custom JavaScript:
Code:
$(function(){
if (typeof grp != 'undefined') {
grp.listen('1/1/1', function(object, state) {
var value = object.value;
if (state == 'value') {
if (value == 1) {
location.reload();
grp.update('1/1/1', false);
}
}
}, true);
}
});
When writing value true to '1/1/1' (bit object) the client will reply with value false to confirm that the location.reload() has been triggered.
BR,
Erwin