Hello again,
My question is roughly similar to the last one I posted here, but this time I need a different solution. I am writing a database driven QA system with PHP (and some javascript). The user goes to a certain page (PHP driven ofcourse) that shows an overview of a certain table. Next, the user clicks on a buton to add a new entry. A popup opens, he enters some data, clicks OK and the data is added to the table. The popup closes and the main page is reloaded. Pretty easy. Something like this in the popup:
self.opener.location.reload()
self.close()
Now comes the harder part:
This time, the user has to enter some more data, so the initial popup opens up another two popups. after that, the initial popup closes. These two new popups need to do the same as in the first scenario. That is, upon completion they must reload the main window and then close themselves. But there is a problem. The initial popup is already closed so calling something like:
self.opener.opener.location.reload()
will just lead me into the void as self.opener doesn''t exist anymore.
Is there anyway to give my main window some kind of name or handle so that I can simply do the same for all popups, no matter who created the popups? Something like:
window[''myMainWindow''].location.reload()
self.close()
or
myMainWindow.location.reload()
self.close()
Any way to accomplish this?
Sander Maréchal
[Lone Wolves Game Development][RoboBlast][Articles][GD Emporium][Webdesign][E-mail]