Aller au contenu principal

ViewOn js onchange issue

Commentaires

3 commentaires

  • Hugh Whitefur

    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
  • Santhoshkumar

    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
  • Hugh Whitefur

    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.