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
#7
(01.11.2024, 13:03)admin Wrote: You can create a .lp file that redirects to the specified URL from a storage entry. This way you don't need Custom JS at all. Link URL should be set to /user/redirect.lp.
Code:
<?
require('apps')
url = storage.get('redirect_url')

if url then
  ngx.req.discard_body()
  ngx.redirect(url)
end

sorry, but I have no idea about that...  as you can understand, I just need to set a button object or something to click on visu to open a new tab in the browser with the link.

Can you please give me the operating steps to do it?

where I have to put that code and how?

Thanks
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: