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 whether you accept or reject these cookies being set.

Open another device visualization with a button
#1
Hi 
Is there any way to use a button to open another device webpage (via its URL) with a button created in LM/SL visualization page without using frame ?
Problem : I have an URL of a webpage of a remote device, as a customer, I would like to use LM/SL visualization page with an icon  to open that webpage on a different and new windows of my browsers.
I made the tests fews years ago with a custom javsScript associated to a button (not SVG), it didn't worked as I was only able to open the remote web page on visualization page without any size control.

B.R,
Chouaibou.
Reply
#2
You can call window.open from Custom JavaScript to open any URL in new tab/window. Set additional classes to link for your element.
Code:
$(function() {
  $('.link').off('vclick').on('vclick', function() {
    window.open('http://openrb.com');
  });
});
Reply
#3
(11.02.2019, 09:07)admin Wrote: You can call window.open from Custom JavaScript to open any URL in new tab/window. Set additional classes to link for your element.
Code:
$(function() {
 $('.link').off('vclick').on('vclick', function() {
   window.open('http://openrb.com');
 });
});

Thank you admin,

B.R,
Chouaibou.
Reply


Forum Jump: