How to force a Iframe to refresh

Hi people, I’m looking to force an Iframe to refresh, without having to refresh the whole app, any helpers?

Thank you in advance

Good question.

When I had to embed a stock chart a while ago, what I did was applying a constantly changing date & time value to the end of the URL. I’m not sure if that applies to iframes but worth a try.

So I convert the “now” value to a single number. Something like 202107301904.

Then the URl would be like https://example.com/example?random=202107301904. I did that with a template.

Then every time Glide’s “now” changes it forces a refresh automatically.

3 Likes

I’ll try, what I’m trying to embed is a graph from Sheets, but in order for the updates to display I neee the app to update, but I’ll try your method to see if it works, thanks Dinh

1 Like

@Manan_Mehta do you have a clue how to do this…maybe with the new code column and some js?

Haven’t come across a fix for that. I personally prefer using Quickcharts to display any graphs which Glide cannot create. They are pretty much instant.

3 Likes

I know, but this is a hard one, and getting the graph from sheets would make my life much easier :slight_smile: