Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: [SOLVED] Logout inline frame Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PatrikIden
Newbie
Newbie
Avatar

Joined: 28 May 2012
Location: Sweden
Online Status: Offline
Posts: 9
Posted: 28 May 2012 at 7:58am | IP Logged Quote PatrikIden

Hello, I'm using Webmail in an inline frame, but when clicking on logout the script leaves the inlineframe an goes to fullscreen. How can i fix, so that when clicking logout the script stays in the inline frame?

Thank you.

I'v got it now.
Back to Top View PatrikIden's Profile Search for other posts by PatrikIden
 
Laxity
Newbie
Newbie


Joined: 28 June 2012
Online Status: Offline
Posts: 3
Posted: 28 June 2012 at 10:54pm | IP Logged Quote Laxity

Hello, I have the same problem.
Can you tell me your hint??

Thank you.
Back to Top View Laxity's Profile Search for other posts by Laxity
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 28 June 2012 at 11:14pm | IP Logged Quote Igor

In js/common/webmail.js file, line ~1213:

Code:
var oDocument = (parent) ? parent : document;


should be replaced with:

Code:
var oDocument = document;


Be sure to purge browser cache to apply changes.

The modification applies to current version of WebMail Lite PHP, it might be different with other versions, the idea would still be the same: use document.location rather than parent.location when logging out.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Laxity
Newbie
Newbie


Joined: 28 June 2012
Online Status: Offline
Posts: 3
Posted: 28 June 2012 at 11:29pm | IP Logged Quote Laxity

Hi Igor,

thanks for your help, but i use the ASP.Net Version and there i can't find this line.
Back to Top View Laxity's Profile Search for other posts by Laxity
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 29 June 2012 at 1:12am | IP Logged Quote Igor

Indeed, it's a bit different there, see lines 814-818:

Code:
if (parent) {
     parent.location = LoginUrl + '?mode=logout';
} else {
     document.location = LoginUrl + '?mode=logout';
}


and it should be replaced with:

Code:
document.location = LoginUrl + '?mode=logout';


There's a similar pattern right before this one, it's related to error output only, but still you might want to apply similar modification there as well.
Back to Top View Igor's Profile Search for other posts by Igor
 
Laxity
Newbie
Newbie


Joined: 28 June 2012
Online Status: Offline
Posts: 3
Posted: 29 June 2012 at 2:05am | IP Logged Quote Laxity

Thanks Igor.

It works fine.
Back to Top View Laxity's Profile Search for other posts by Laxity
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide