Solved

Reload after Popup Window

Posted on 2011-03-03
1
362 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

10 Experts available now in Live!

Get 1:1 Help Now