ChrisCarlson Posted May 11, 2016 Report Share Posted May 11, 2016 How can I get a datapage to refresh a parent frame on submit? Quote Link to comment Share on other sites More sharing options...
ChrisCarlson Posted May 11, 2016 Author Report Share Posted May 11, 2016 Nevermind, I used the following: <script type=text/javascript> setInterval(function ReloadParent () { window.parent.location.reload(); },3000); </script> Quote Link to comment Share on other sites More sharing options...
Olfa Posted May 12, 2016 Report Share Posted May 12, 2016 setInterval is going to execute your ReloadParent function evry 3 second. in order to reload the parent page only once you have to use setTimeout function.Or you can simply use the code bellow <script> myFunction() { window.parent.location.reload(); } document.getElementById("caspioform").onsubmit=myFunction; </script> Olfa MayMusic and JEllington 2 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.