adrianakobu Posted October 14, 2020 Report Share Posted October 14, 2020 So I have a iframe inside my report data page and on the same page I have an URL that opens a pop up window, this pop up window receives parameters from my report data page and once I fill out and close the pop up window I want my iframe to reload, because the pop up window is actually the submission form for the iframe. I just want to reload the iframe because if I reload the whole page, my changes on other fields will be lost. Can somebody guide me on how to do this? Quote Link to comment Share on other sites More sharing options...
astroboy Posted September 25, 2021 Report Share Posted September 25, 2021 Hello there, if it helps, there's a new HowTo documentation about auto refreshing a page and you may check it using this link: https://howto.caspio.com/faq/reports-datapages/how-to-auto-refresh-a-page/ Quote Link to comment Share on other sites More sharing options...
LWSChad Posted October 1, 2021 Report Share Posted October 1, 2021 I don't think you can communicate from a popup window to another browser tab/window, but you can refresh a specific iframe instead of the whole page. <iframe id="my-iframe" src="my-page.html"></iframe> <button onclick="refreshIframe();">Reload Iframe</button> <script> function refreshIframe() { const ifrEle = document.querySelector('#my-iframe'); ifrEle.src = ifrEle.src; } </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.