How to refresh the binding on Iframe?

How can we refresh the data/web source binding on a IFrame?

If you are running refresh script from the Iframe itself

self.refreshBinding('props.src')

Otherwise the self should be replaced by the exact path of the Iframe

This did not work. when i refresh the page, Iframe is getting the updated data.

How can I update the data on Iframe without refreshing the perspective session? DataSource to iframe is from database query..

Include a "throw-away" query parameter in the URL in the IFrame, and change that parameter each time you wish to refresh. You are dealing with browser caching behavior, not anything Ignition is responsible for.

3 Likes