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
#5
(31.05.2020, 21:33)Erwin van der Zwart Wrote: Hi,

Add this line to your code:
Code:
$('.modal-backdrop').addClass("hide");
BR,

Erwin


Hi Erwin,
Thx again for the quick response, however I now find it difficult to apply in my code. Can you please help.

My code: 

var plantimer;
$(function(){

  if (typeof grp != 'undefined') {
 
      grp.listen('1/1/1', function(incomingEvent, eventType) {
        if (eventType == 'value') {
          switch(incomingEvent.value){
              case 1:
                  showPlan(11);
                  break;
              case 2:
                  showPlan(7);
                  break;
              case 3:
                  showPlan(38);
                  break;
          }
  if (plantimer){
        clearTimeout(plantimer)
        }
          plantimer=setTimeout(function(){
              showPlan(1);
          }, 60000);
        }
      });
 
    }
});
Reply


Messages In This Thread
RE: Jump to visualization page when ID is received - by jurmaster - 01.06.2020, 09:47

Forum Jump: