ViewOn js onchange issue
Hi, I am trying to run viewOn java script, but its not working My script is to run some fuction based on the viewon tag value changes. If value changes in the viewon tag function should execute.
During viewon simulation no error is appears and am not getting output Please guide on this....


-
If you look at your browser's development console, do you see any errors being printed there? In most browsers you can hit F12 to bring this up.
For some additional context, can you tell us more about what you're hoping to do in this project? What is your plan for handling the viewON tag's value once your function is triggered?
0 -
Thanks hugh for responce,
Actually I am going to display a moving alarm text with trigger time as like alarm summary using viewOn java script. Based on the ewon tag value, But Right now I don't have ewon flexy, so for the simulating purpose i used viewon tag(getViewOn TagValue("input");


0 -
I don't think you can use addEventListener to respond to changes in a variable's value. You might try using a Proxy object as outlined in this Stack Overflow post, but that will only work in the case that the Proxy object is modified rather than whatever it's proxying.
The JavaScript section you're editing will run on the interval shown (value in ms with a minimum of 100ms), so you can use this to check the current value of a tag and respond accordingly.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires