30.10.2020, 02:22
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?
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?