05.06.2018, 15:09
(27.03.2017, 19:44)Erwin van der Zwart Wrote: Hi,
I would use option 2, add custom class 'hidebyknx' to your elements and try this custom JS code:
Code:$(function(){
grp.listen('1/1/1', function(object, state) {
if (state == 'value' && object.value == true) {
$(".hidebyknx").addClass("hide");
} else if (state == 'value' && object.value == false) {
$(".hidebyknx").removeClass("hide");
}
}, true); // set to true to respond on same value
});
BR,
Erwin
Hello Erwin:
Sometimes when I reload the page after inactivity for 20 or 30 seconds, or after several reloads of the page, the button is showed again even when the value in object to hide is true. Is like the reload is not executing the javascript code, I have tested clearing the cache, but happening the same, even I have testing with (firefox, chrome, and explorer). Why it is happenning??? How can I fix it??
BR,
Roger