Page 1 of 1

Refreshing a background page and more...

Posted: Wed Feb 23, 2005 7:03 am
by TheOracle
Hi All,

I have a dilemma which I would like some help with!

I have a web page which contains a link to a pop-up window containing a form.

What I want to happen, is that when the form on the pop-up box is submitted, the original page is refreshed and displays data based on the input of the pop-up form.

I have seen this working on other sites, but can't remember any specifically.

It would also be cool if after csubmitting the form on the pop-up window, it closed.

Look forward to a response.

Posted: Wed Feb 23, 2005 7:25 am
by feyd
rough example (untested) Javascript

Code: Select all

var w = window;
var o = w.opener;

o.location = o.location;
w.close();
similar code should appear on the resultant page (action) of the popup's form.


Moved to Client-side.