This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Force iframe Refresh
#1
Hi,

Im using an iframe with some custom javascript to change the source url. I have 1 page set up with page link buttons that all point to the 1 iframe page on the LM, each button has a different additional class that changes the source url. This work fine when hopping between different LM's and websites. But im having trouble accessing different pages on the same LM. I believe the browser is caching the page http://192.168.1.251/scada-vis/#2, when i select a button that changes the url to http://192.168.1.251/scada-vis/#3 it seems the browser is disregarding the /#pagenumber and returns the last cached page of the LM (http://192.168.1.251/scada-vis/#2).

if i move to a different page on the LM and then back to the new URL its fine, it seems to happen only when the iframe has loaded the source and then next url is the same only the /#is different.

Currently my work around is to make separate dedicated iframe pages where this scenario occurs, so an iframe page with a static url http://192.168.1.251/scada-vis/#2, and another with a static url http://192.168.1.251/scada-vis/#3 etc etc

Is there another way to get around this? maybe forcing the iframe to refresh or stop the browser form caching?
Reply


Messages In This Thread
Force iframe Refresh - by Diggerz - 30.10.2020, 02:22
RE: Force iframe Refresh - by admin - 30.10.2020, 06:28
RE: Force iframe Refresh - by Daniel - 30.10.2020, 08:34
RE: Force iframe Refresh - by Diggerz - 13.01.2021, 21:00
RE: Force iframe Refresh - by admin - 14.01.2021, 07:38
RE: Force iframe Refresh - by Diggerz - 18.01.2021, 07:56

Forum Jump: