[thelist] Two windows; child window reloads the parent.

Christian Heilmann codepo8 at gmail.com
Mon Oct 10 02:57:09 CDT 2005


> There is a main window with a link to a little window which displays
> program execution output, updates the main window, closes itself  and
> focus is then returned to the main window.
> Currently i can open the little window, run data, make it close itself
> and so return to the main window, but i cant refresh the main window
> before the little one closes. so the data that is run pertains to the
> main window and i dont want the user to have to press the refresh button.
> do i have to give the main window a name and then refresh that named
> window? how is refreshing done in js?

there is window.location.reload() or window.location=window.location

You reach the window that opened the popup via "opener".

All in all this is very JavaScript dependent though, and to make it
failsafe you should try to send the results via server side variables.

There is an example here:
http://lists.evolt.org/archive/Week-of-Mon-20000918/017407.html


--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/


More information about the thelist mailing list