Click to See Complete Forum and Search --> : tricky pop-up


bobby_dummy_022
12-09-2003, 04:58 PM
Ok, I have been on this problem for a while now, and I havn't been able to find a solution on these forums as yet, so I am going to try and explain it better.

My requirement: click a link which opens a new window (pop-up) which contains a form, with a select box. Upon selection and clickinh submit, I want to call another PHP file (which does some processing (this part I dont need help with), and then after the PHP script is finished, the pop-up is to close, and the original calling page should REFRESH.


So, to summarise, I need to understand a way to tell the pop-up calling page (the first window) to refresh.

example:

a.php contains a link, which pop-ups b.php, which contains a form which action is = c.php. c.php refresh's a.php.

How could this be done?

terov
12-09-2003, 09:38 PM
Use the window.opener property. I'm not too familar with it, but I assume what you'd want to do goes something like this (in the pop-up contaning b.php):

window.opener.location = "c.php"

Hope that helps :)