24.07.2024, 07:55
(24.07.2024, 06:32)admin Wrote: Check this: https://forum.logicmachine.net/showthrea...2#pid17512
Thanks
|
Custom JavaScript examples
|
|
24.07.2024, 07:55
(24.07.2024, 06:32)admin Wrote: Check this: https://forum.logicmachine.net/showthrea...2#pid17512 Thanks
22.08.2025, 11:57
Hi,
I would like to implement a haptic feedbak using Visualization on iPhone or Android phones. Is this pssible with a custom java script? Thanks and kind regards, Daniel
22.08.2025, 12:48
See this: https://developer.mozilla.org/en-US/docs...ration_API
It will only work on Android, Safari on iOS does not support this API.
10.02.2026, 11:12
Hello.
I have a variable that tells me there are new alerts ‘true’. I would like that when I access the screen where I see the alerts, that variable automatically changes to ‘false’. Can anyone help me? Thank you.
10.02.2026, 11:26
What kind of variable? It is a group address?
10.02.2026, 11:33
A virtual bool one; 50/1/0
10.02.2026, 11:34
Something like this, keeping in mind that the screen ID is 112 and the variable is 50/1/0:
$(function(){ if (typeof grp == 'undefined') { return; } $('body').on('showplan', function(event, id) { if (id == 112) { grp.write('50/1/0', 0); } }).trigger('showplan', [ currentPlanId ]); });
11.02.2026, 12:31
Hi, I've tried the code and it's not working. Could someone help me with this? Thanks in advance.
11.02.2026, 12:50
11.02.2026, 13:00
Change script to this, open browser dev tools (F12) and check what you get in the console. Are you sure that the target plan ID is 112?
Code: $(function(){
11.02.2026, 13:01
When testing this will work from end visualisation not editor.
------------------------------
Ctrl+F5
11.02.2026, 13:29
Yes, panel ID is 112
And yes, I try it on end visualisation. Still not working. I have a schnider wiser, I don't know if it is a problem.
11.02.2026, 13:33
See my previous post, check browser console. Does 50/1/0 exist? Do you have anything else in Custom JS?
11.02.2026, 13:35
Your script works for me on SL, if it doesn't work then it is wrong ID or group.
------------------------------
Ctrl+F5
11.02.2026, 13:50
I have a 50/1/0 address that tells me there are new alerts. The idea I have in mind is that when I access the alerts panel, that variable automatically changes to 0, so that it is assumed that there are no new alerts.
11.02.2026, 13:52
CSS is not JavaScript, check manuals where is the correct place.
------------------------------
Ctrl+F5
11.02.2026, 13:59
|
|
« Next Oldest | Next Newest »
|