Jump to content

refresh parent windows upon submit/update/close of child window


Recommended Posts

I use the below code in my caspio datapage under emails & destination as suggested by in the forum. It was working like a charm but suddenly now it does not work anymore.  anyone can help with new code or why it is not working?

<script>
window.close();
window.onunload = function(){
  window.opener.location.reload();}
</script>
Link to comment
Share on other sites

  • 4 weeks later...

Yes - however I have picked up that issue appears related to Chrome version 54.   The popups still work on Safari etc.   As I understand it Chrome will simply no longer enable refresh of a parent window from a popup.  Its real shame as was quite a nice way of working.  What I have done is have parent open a new URL on top i.e replace it with what would have been the popup window and once the "popup" (i.e new URL page) has had its info added it would then return to the original parent URL and thus provide a refresh.

It works in all browsers I have tried but not quite as slick as using the popup.  If however you have a method that woudl work please do adviser :-)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...