[opencms-dev] OCMS 5 - No popup login

James jim at futurate.com
Tue Mar 15 12:24:05 CET 2005


How do I modify the function "openwin" in vfs/system/login/index in order to
login to the workplace through one wind, rather than have a popup? 

 

 

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,r
esizable=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/20050315/832fa4f5/attachment.htm>


More information about the opencms-dev mailing list