cancel
Showing results for 
Search instead for 
Did you mean: 

Portal log off error

Former Member
0 Kudos

Hello everyone,

When I click on the log off button, an I.E window opens up with the following message "The web page you are viewing is trying to close the window". If I click yes, the browser window closes. How can I avoid this message from popping up? I want that when the user clicks on the log off, the browser window should close without popping any new window. I am not using any popupblockers. I have used window.close() to close the browser window.

Thanks,

J.D

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What version of EP are you using?

In any case, the following should suppress the pop up for closing a parent window.

<a href="javascript:close(opener=0)">Close</a>

Regards,

Patrick

Former Member
0 Kudos

Thanks Patrick! Appreciate your help.

-J.D

Former Member
0 Kudos

Hey Jessica,

Where did u fix this?

Is the pop u talking abt is same as the pop up that comes when u hit log off? with message'Are you sure u want to log off'.

Regards.

Former Member
0 Kudos

Peter,

No this is not the portal log off message. I had disabled the portal log off message. I made changes to the par file com.sap.portal.navigation.masthead par file to remove the log off.

J.D

Former Member
0 Kudos

K thanx for responding.

U removed LogOff link from the MastHead...but don't u think it creates confusion for the end users?

I just want to know if that cud create any problems.

I'm trying to edit masthead to display logoff message when a user clicks X on the window.Do u have any script and where to place?

Regards,

Former Member
0 Kudos

Peter,

I really dont think removing the log off pop-up will create problems for the user. Its just that they have to do one less click.

Clicking X on the window is something very fundamental to the browser and I am not sure if javascript will work at that level.

J.D

Former Member
0 Kudos

Thank you.

Yes it is possible to invoke a script when u click X.

windows.onunload()=closeEP and then call logoff() in Masthead.

function closeEP()

{

logoff();

}

I tried that but i don't fathom where iam failing. i can alert a simple message in logoff().

Like if i hit X. closeEP() will be called and it inturn calls logoff().It alerts the simple message but never brings that pop box with message "Are you sure, you want to logoff".

Regards,

Answers (0)