24.06.2018, 07:34
(This post was last modified: 24.06.2018, 07:41 by Erwin van der Zwart.)
Hi,
Try something like this:
BR,
Erwin
Try something like this:
Code:
$(function(){
grp.listen('1/1/1', function(object, state) {
if (state == 'value' && object.value == true) {
$(location).attr('href', 'http://' + location.hostname + '/logout')
}
}, false); // set to true to respond on same value
});
Erwin