Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\js\cti\doCallCTI_ajax.jsp
<%@page import="com.edeal.frontline.*,com.edeal.frontline.navigation.FlRequest"%> <%@page import="org.apache.commons.lang.StringUtils"%><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); Boolean actHasCTILic = (Boolean)flRequest.getAttribute("actHasCTILic"); Boolean isDoCTIWindow = (Boolean)flRequest.getAttribute("isDoCTIWindow"); String strActID = (String)session.getAttribute("actorID"); ActorBean actor = null; boolean hasCTIRole = false; try{ actor = new ActorBean(strActID, context); hasCTIRole = actor.hasRole("CTI"); } catch(Exception e){} if (actHasCTILic == null) { actHasCTILic = false; } if (isDoCTIWindow == null) { isDoCTIWindow = false; } %> var arg0 = '<%= StringUtils.defaultIfEmpty(flRequest.getParameter("arg0"), "") %>'; var arg1 = '<%= StringUtils.defaultIfEmpty(flRequest.getParameter("arg1"), "") %>'; var arg2 = '<%= StringUtils.defaultIfEmpty(flRequest.getParameter("arg2"), "") %>'; // testing isDoCTIWindow is not enough; the cti can use a cti window but // the window is not opened because activatedServices do not contains CTI and // activateCTI is set to false; => javascript error: reference... is not defined <% if (actHasCTILic && hasCTIRole) { %> try { <% if (isDoCTIWindow) { %> var winCTI = window.open('', 'CTI'); if (winCTI != null) { //if (typeof winCTI['doCallCTI'] == 'function') { winCTI.doCallCTI(arg0, arg1, arg2); //} } <% } else {%> // if a CTI is functional i.e. activateCTI is true and activatedServices contains CTI; then doCallCTI is defined in javascript. // if doCallCTI is defined, call it. if (typeof this.window['doCallCTI'] == 'function') { doCallCTI(arg0, arg1, arg2); } <% } %> } catch (error) { alert("javascript error:"+error); } <% } %> if (addInteractionGlobal) { addInteractionGlobal(arg0, arg1, arg2); } else if (addInteraction) { addInteraction(arg0, arg1, arg2); }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de