Jump to content
  • 0

Refresh Parent Window After Closing A Popup Window


ppbb123

Question

5 answers to this question

Recommended Posts

  • 0

One reason is the security restrictions since parent and child windows have different domain names. This happens if the parent/opener DataPage is embedded in your domain (yousite.com) and the popup DataPage (the one which is auto submitted) is called by direct URL (bn.caspio.com).

 

To fix the issue, deploy the popup DataPage (the one which is auto submitted) on same domain as the opener and then use the following code in Destination and Triggers screen inside Display a Message text/HTML area:

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

  • 0

Hi all,

I tried to implement the solution provided in this forum thread in my application. However, none of these worked for me. Just to share with you how I overcome this issue, I used this code instead at Search and Report Wizard - Destination and Messaging:

<script>
window.close();
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
</script>

image.png.dac4e7b33b0d7be570f02b8893d067b1.png

 

I got the script in this article: https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/add-an-option-to-a-public-facing-dropdown/

 

-kristina :)

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
Answer this question...

×   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...