Solved

Reload after Popup Window

Posted on 2011-03-03
1
372 Views
Last Modified: 2012-05-11
I have a webpage that makes playlists and I have the playlist page popup a page that allows me to add playlist.  When I finish, I want to click Finished and when the screen returns to the screen that activated the popup, I would like it to do a refresh to load the playlist just created.  All of it works except for the ability to reload.  

Does anyone know how I can do this?

    <div id="GAPLD">
      <label>
        <input type="button" name="GAPL" id="GAPL" value="Add" onClick="newPopup('./APL.php')";/>
      </label>
    </div>
<script type="text/javascript">
    // Popup window code
    function newPopup(url) {
        popupWindow = window.open(url,'popUpWindow','height=110,width=400,left=400,top=300,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no')
    }
</script>
0
Comment
Question by:corterp
1 Comment
 
LVL 14

Accepted Solution

by:
robasta earned 500 total points
ID: 35033900
do this on the popup window:
<input type="button" value="Close this window" onclick="opener.location.reload(); self.close();">

Open in new window



also see here for more info http://www.java2s.com/Tutorial/JavaScript/0380__Window/windowopener.htm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now