Atchett
Programmer
- Dec 7, 2000
- 35
Hi all,
I am have a rather irritating problem with a coulpe of pop up's and I am sure there must be a simple solution.
I have a pop up that allows users to register on the site and then another pop up which allows users to login to the site.
On the popup that allows users to register there is an option for users to login if they are already registered. This closes the registration pop up and opens the login pop up. When the user has logged in a new page appears allowing the user to close the window.
My problem is this (apart from having so many pop up's!!!) - When I close the popup I want the main page to be refreshed. This works fine if the user follows the registration process through or just the login process through using - window.opener.location.reload(); - but when I cross the two over i.e. close the registration pop up and open the login pop up from it, the window which opend the pop up has obviously closed and therefore cannot be reloaded. (I hope everyone is with me on this!)
Does anyone have any idea how I can reference the main browser window without using the window.opener method?
Many thanks,
I am have a rather irritating problem with a coulpe of pop up's and I am sure there must be a simple solution.
I have a pop up that allows users to register on the site and then another pop up which allows users to login to the site.
On the popup that allows users to register there is an option for users to login if they are already registered. This closes the registration pop up and opens the login pop up. When the user has logged in a new page appears allowing the user to close the window.
My problem is this (apart from having so many pop up's!!!) - When I close the popup I want the main page to be refreshed. This works fine if the user follows the registration process through or just the login process through using - window.opener.location.reload(); - but when I cross the two over i.e. close the registration pop up and open the login pop up from it, the window which opend the pop up has obviously closed and therefore cannot be reloaded. (I hope everyone is with me on this!)
Does anyone have any idea how I can reference the main browser window without using the window.opener method?
Many thanks,