This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Auto opening widget, Changing camera view in 1 small widget
#18
Dear Erwin, 

I would like to ask you for advice. I would like to show notification widget after the KNX object is changed. 

I used your javascript code: 

Code:
$(function(){
 if (typeof objectStore !== 'undefined') {    
   grp.listen('14/7/1', function(object, state){
     if (state == 'value' && object.value == true ) {
       $("#widget-69").removeClass("hide");      
     }
   }, true);
   
   grp.listen('14/7/1', function(object, state){
     if (state == 'value' && object.value == false ) {
       $("#widget-69").addClass("hide");      
     }
   }, true);
 }
});



But after clicking outside the widget, the widget hides - its ok. After that, control of showing the widget from KNX object is not possible.

Thank you
Reply


Messages In This Thread
RE: Auto opening widget, Changing camera view in 1 small widget - by miro.suchanek - 27.10.2016, 12:55

Forum Jump: