Submitting forms from popup window to get results in main window

Discussion in 'PHP' started by audax, Jun 12, 2008.

  1. #1
    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?
     
    audax, Jun 12, 2008 IP
  2. in2clearsky

    in2clearsky Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to use below javascript on the popup window after submitted. It'll reload the opener window.

    window.opener.location.reload();
    Code (markup):
     
    in2clearsky, Jun 12, 2008 IP
  3. audax

    audax Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    audax, Jun 13, 2008 IP
  4. audax

    audax Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry for the double post bump, but does anyone have any ideas on how to get this to work?
     
    audax, Jun 23, 2008 IP