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.

link on scada-vis
#5
(01.11.2024, 07:35)admin Wrote: Use a virtual object with 250 byte string data type (32/0/1 in this example).
Code:
$(function() {
  if (typeof grp != 'object') {
    return;
  }
 
  var url;

  $('.link').off('vclick').on('vclick', function() {
    window.open(url);
  });

  grp.listen('32/0/1', function(obj) {
    url = obj.value;
  });
});


in fact I had already thought of this solution, the problem is that the URL is too long and is truncated to 250 bytes as it contains an authentication token that changes every time:
http://10.0.0.146:8080/dashboard/28a2e20...8So-6_WXUw
Reply


Messages In This Thread
link on scada-vis - by gdimaria - 30.10.2024, 15:33
RE: link on scada-vis - by admin - 30.10.2024, 15:41
RE: link on scada-vis - by gdimaria - 31.10.2024, 12:33
RE: link on scada-vis - by admin - 01.11.2024, 07:35
RE: link on scada-vis - by gdimaria - 01.11.2024, 12:58
RE: link on scada-vis - by admin - 01.11.2024, 13:03
RE: link on scada-vis - by gdimaria - 01.11.2024, 13:21
RE: link on scada-vis - by admin - 01.11.2024, 13:25
RE: link on scada-vis - by gdimaria - 01.11.2024, 20:12

Forum Jump: