Perspective on tag change send message to custom Javascript

I have custom html/JavaScript running through the WebDev module, and have an IFrame linking to this custom html/JavaScript. When I have an event that happens in perspective (tag change, button press, etc.) I would like to send an update to my custom javascript, and make that update show inside of the IFrame. Is it possible to create some kind of “listener” in javascript to listen for things that happen in Ignition. I have a solution where my javascript polls the gateway every 1 second, but this will always be slightly slower and use more traffic than event based communication.
If anyone has any other Ideas, I would love to hear them!

1 Like

you could always pass down variables through the url, tho that might cause the page to reload which isnt always that fast either.

there are also the system.net functions like
system.net.httpPost - Ignition User Manual 8.1 - Ignition Documentation
and
system.net.httpGet - Ignition User Manual 8.1 - Ignition Documentation
which require some more js knowledge

This is what I am currently doing with some variables, but you are correct. This causes the entire page to reload, which is unfortunate.