# How to refresh the binding on Iframe?

**URL:** <https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032>\
**Category:** Ignition\
**Created:** [May 22, 2023, 5:03pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032 "2023-05-22T17:03:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 22, 2023, 5:03pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/1 "2023-05-22T17:03:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [May 24, 2023, 10:01am UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/2 "2023-05-24T10:01:07Z")

</div>

If you are running refresh script from the Iframe itself

```auto
self.refreshBinding('props.src')

```

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

---

<div class="post-metadata">

**Author:** ![PRASHANTH\_KAKKIRALA](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@PRASHANTH\_KAKKIRALA](https://forum.inductiveautomation.com/u/PRASHANTH_KAKKIRALA)\
**Post date:** [May 24, 2023, 12:25pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/3 "2023-05-24T12:25:01Z")

</div>

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..

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 24, 2023, 12:32pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/4 "2023-05-24T12:32:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![952485837](https://avatars.discourse-cdn.com/v4/letter/9/76d3ee/32.png) [@952485837](https://forum.inductiveautomation.com/u/952485837)\
**Post date:** [January 7, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/5 "2024-01-07T15:49:46Z")

</div>

that works, like src="/system/webdev/MESCADA/data/reports/testC6.html?A=%s" % str(system.date.now())

---

<div class="post-metadata">

**Author:** ![ahernandez](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@ahernandez](https://forum.inductiveautomation.com/u/ahernandez)\
**Post date:** [February 27, 2024, 8:05pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/6 "2024-02-27T20:05:30Z")

</div>

what is A in this example? Is that a parameter how does it know when to refresh?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 27, 2024, 8:24pm UTC](https://forum.inductiveautomation.com/t/how-to-refresh-the-binding-on-iframe/74032/7 "2024-02-27T20:24:33Z")

</div>

@ahernandez, this question is about Vision's IFrame. Are you using that or Perspective's Inline Frame?

> What is A in this example?

It's a URL GET `parameter=value` pair. The web server that is being called isn't expecting a parameter called 'A' so it ignores it but does serve up the page again.

The _browser_ does care about it. As far as it's concerned you've requested the page again but with a different parameter so it makes a repeat request.

> Is that a parameter how does it know when to refresh?

That's part of a script triggered by something else and since it references system.date.now() it will change the 'A' parameter value.

> **[system.date.now | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-date/system-date-now)**
>
> Returns a java.util.Date object that represents the current time according to the local system clock.
