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.

Jump to visualization page when ID is received
#3
(31.05.2020, 07:39)Erwin van der Zwart Wrote: Hi,

Here is a custom JS to do that:
Code:
$(function(){
  if (typeof grp != 'undefined') {
    grp.listen('1/1/1', function(object, state) {
      if (state == 'value') {
          showPlan(object.value);      
      }
    });
  }
});
BR,

Erwin
Hi Erwin,

Many thanks!  Works like a charme!
Added time out, so it hops back to startscreen (i defined).

if (plantimer){
        clearTimeout(plantimer)
        }
          plantimer=setTimeout(function(){
              showPlan(XX);
          }, 60000);
        }
      });


1.

(31.05.2020, 07:39)Erwin van der Zwart Wrote: Hi,

Here is a custom JS to do that:
Code:
$(function(){
  if (typeof grp != 'undefined') {
    grp.listen('1/1/1', function(object, state) {
      if (state == 'value') {
          showPlan(object.value);      
      }
    });
  }
});
BR,

Erwin
  Erwin,

1 question in addition to this. Can you also make the visualisation active?  I now use dimming. So the visulaisation is shown, but the screen is dimmed.
Reply


Messages In This Thread
RE: Jump to visualization page when ID is received - by jurmaster - 31.05.2020, 14:24

Forum Jump: