How to add basic Javascript file to the HMI Webserver ?
Hi,
We are looking for a solution to detect user interaction with the HMI served by the Webserver.
One solution would be to add a Javascript piece of logic that detects user clicks on the HMI screen using a eventListener on the HTML document object via jQuery and update a PLC variable accordingly.
Yet, we don't know how to load this kind of file in PLCnext Engineer. We tried to add the JS file as a HMI application Support File but it is not loaded in the HMI application.
Any advice on how to add Javascript file/script to the HMI application ?
Thanks a lot for any help !
We are looking for a solution to detect user interaction with the HMI served by the Webserver.
One solution would be to add a Javascript piece of logic that detects user clicks on the HMI screen using a eventListener on the HTML document object via jQuery and update a PLC variable accordingly.
Yet, we don't know how to load this kind of file in PLCnext Engineer. We tried to add the JS file as a HMI application Support File but it is not loaded in the HMI application.
Any advice on how to add Javascript file/script to the HMI application ?
Thanks a lot for any help !
Comments
unfortunatly JavaScripts are with the current version not possible, but is planned for PLCnext Engineer 2022.0 (release end of this year).
Frank
Thanks for your quick answer !
We will therefore go for the user click based solution in the meantime.
Have a nice day.
Philippe