PS (was - Re: [opencms-dev] My simple, convenient (and ugly!) sample for frontend login)

Christian Steinert christian_steinert at web.de
Sun May 28 15:32:15 CEST 2006


if you want to have the javascript shorter, take this one instead.
And forget about "ba_initFontSize();", this call is unrelated and crept 
into my 1st post accidentially.

so again:
================ frontendlogin.js ===
<%@ page session="false" %><%@ taglib prefix="cms" 
uri="http://www.opencms.org/taglib/cms" %>
document.onkeyup=function(e){
 if(!e)e=window.event;
 if(e&&(e.type=="keyup")&&(e.keyCode==32)&&e.ctrlKey)
  
location.href="<cms:link>/system/modules/com.berzinarchives.cms/workplace/action/frontendlogin.jsp</cms:link>?url="+escape(location.href);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060528/33591a17/attachment.htm>


More information about the opencms-dev mailing list