Refreshing a background page and more...

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
TheOracle
Forum Commoner
Posts: 64
Joined: Mon Nov 22, 2004 4:56 am
Location: Bedford, UK

Refreshing a background page and more...

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply