[opencms-dev] OCMS 5 - ***NO POPUP LOGIN***
Frans Postma
fpostma at xs4all.nl
Thu Mar 17 11:44:33 CET 2005
Perhaps "workplace=self" will work, you'll need to get rid of the window.open call for sure. Be aware that you will end up with a
browser window with menubar/location and statusbar, all of which you don't need nor want in a workplace.
Whats the obsession on opening the workplace without a new window? If IE popup-blocker is annoying you, just allow popups from
your opencms server.
Frans
_____
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of James
Sent: donderdag 17 maart 2005 11:24
To: opencms-dev at opencms.org
Subject: [opencms-dev] OCMS 5 - ***NO POPUP LOGIN***
How do I modify the function "openwin" in vfs/system/login/index in order to login to the workplace through one browser window,
rather than have a popup?
This is the code from system/login/index:
function openwin(url, name, w, h) //opens a new window with parameter URL, Windowname (free choosable), width and height
{
if (url != '#') {
if(w==0) w=screen.availWidth-20;
if(h==0) h=screen.availHeight-100;
encodedurl = encodeUrl(url);
workplace = window.open(encodedurl, name,
'toolbar=no,location=no,directories=no,status=yes,menubar=0,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h);
workplace.moveTo(0,0);
if(workplace != null) {
if (workplace.opener == null)
{
workplace.opener = self;
}
workplace.focus();
}
}
return workplace;
}
Is this the way to do it?
Cheeers...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050317/be93dbbb/attachment.htm>
More information about the opencms-dev
mailing list