Whew! Long title, but it's just what I'm looking for. I've got an Ajax/PHP form that I've got in a popup window, but I'd like the results, when the form is submitted, to show up in the main window. The main window will have a link that will have the popup appear when clicked. Then the form will be in the popup. Once the form has been submitted, the results will show up in the page where the link to the popup is. Does that make sense? Anyone have any ideas on what might be possible in order to get this done?
Try to use below javascript on the popup window after submitted. It'll reload the opener window. window.opener.location.reload(); Code (markup):
It doesn't appear to be working. It refreshes the parent window, but the popup remains open and the results still show up there. How to I get the variables to pass from the popup to the main and have the main go to my results page? The form input is passed via POST.