123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ page import="com.kingdee.eas.cp.common.web.util.WebContextUtil"%>
- <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
- var appletExpMsgBox = new WebMsgDialog("<%= WebContextUtil.getPortalContextPath(request) %>");
- var exps = new Array();
- exps["INVALID_URL"]="<bean:message bundle='ssoLogin' key='INVALID_URL'/>";
- exps["INVALID_EAS_JNLP"]="<bean:message bundle='ssoLogin' key='INVALID_EAS_JNLP'/>";
- exps["EAS_JNLP_DOWNLOAD_FAILS"]="<bean:message bundle='ssoLogin' key='EAS_JNLP_DOWNLOAD_FAILS'/>";
- exps["EAS_JNLP_SAVE_FAILS"]="<bean:message bundle='ssoLogin' key='EAS_JNLP_SAVE_FAILS'/>";
- exps["INVALID_SERVICE_PROVIDER"]="<bean:message bundle='ssoLogin' key='INVALID_SERVICE_PROVIDER'/>";
- exps["ACTION_PEFORM_FAILS"]="<bean:message bundle='ssoLogin' key='ACTION_PEFORM_FAILS'/>";
- exps["APPLET_INIT_FAILS"]="<bean:message bundle='ssoLogin' key='APPLET_INIT_FAILS'/>";
- exps["APPLET_INIT_FAILS_HELP"]="<bean:message bundle='ssoLogin' key='APPLET_INIT_FAILS_HELP'/>";
- function handleAppletException(resxItemKey,errMsg)
- {
- try
- {
- swapAppletInitFailText();
- appletExpMsgBox.showIndexMessageBox(appletExpMsgBox.TYPE_NOTICE,exps[resxItemKey],errMsg);
- }
- catch(e)
- {
- //let applet go on running...
- //ignore
-
- }
- }
- //function setLogined(sessionId){
- // var form = top.LoginFrame.document.EasForm ;
- // form.easSessionId.value = sessionId;
- //}
- function swapAppletInitFailText()
- {
- var initFailText = exps["APPLET_INIT_FAILS_HELP"];
- if(typeof(DownloadingTextLayer) !="undefined")
- DownloadingTextLayer.innerHTML = initFailText ;
- if(typeof(top.ContentFrame.loginProcceBarID) != "undefined")
- top.ContentFrame.loginProcceBarID.innerHTML = "<span class='processbar_label'>"+initFailText +"</span>";
- }
|