[opencms-dev] OCMS 5 - ***NO POPUP LOGIN***

James jim at futurate.com
Thu Mar 17 11:23:49 CET 2005


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,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/20050317/d2f6675c/attachment.htm>


More information about the opencms-dev mailing list