on 05-05-2014 10:17 PM
Hello.
We are implementing portal 7.3 and have a business requirement to close all portal pop-up windows when a user log off from portal.
Users can open portal applications which will open in pop-up windows. When they log off from portal, those applications in pop-up windows should also be closed. Is there anyway we can force the pop-up window to close along with portal log off action?
I know each browser window is independent and may not be controlled from triggering event in another window to force close. Let me know if there is any way we can achieve this.
Appreciate your response.
Thanks
The only popup you can close are the ones you have opened from the portal itself with a name. Otherwise there is no reference to other popups.
Why would you like to close the popups? Any particular reason?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can control that. I did it once- close the child element of the browser window (parent) just after clicking the logoff button and before actually calling the logoff function. You can find the functionality in masthead where you would need to add some piece of code.
Regards,
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Yes the code shall reside in this jsp. I do not remember the exact code (and also I am a bit too lazy to work out the complete thing again) but I can definitely help you with pointing in the right direction.
First check how the child window/page is opening. I mean check the code behind the child window and change the same if it is not already using the javascript window.open.
Now when you get the window id, you can handle window.close for that
Regards,
Atul
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.