2009-09-10 8 views
0

일부 탭이 포함 된 헤더 파일을 코딩했습니다.이 헤더 파일은 jsps 웹 사이트에 포함되어 있습니다. 두 개의 JSP 페이지 탭은 인터넷 탐색에서 작동하지 않지만 다른 jsps 그 작업 fine.in 파이어 폭스 각 탭은 각 jsps에서 잘 작동합니다. 아래의 은 헤더가 포함 된 jsp의 코드 섹션입니다.탭 링크는 인터넷 익스플로러에서는 작동하지 않지만 파이어 폭스에서는 잘 작동합니다.

<!-- Header Start --> 

    <!-- standard header bar with logo --> 
    <%@ include file="ssi/header1.ssi"%> 
    <!-- end of standard header bar with logo --> 

<!-- Header End --> 

헤더 파일의 탭 부는 내가 "같이 location.href"를 "window.location.href"을 수정 한 header1.ssi

<div id="header"> 
<div class="headerInner"> 
    <div class="logo">&nbsp;</div> 
    <div class="userDetails"> 
     <% { 

      if(session.getAttribute("usermanagement")==null){ 
        headerObj= headerCtx.lookup("UserManagementJNDI"); 
        headerHome=(UserManagementHome)PortableRemoteObject.narrow(headerObj,UserManagementHome.class); 
        session.setAttribute("usermanagement",headerHome); 
       } 
      else 
        headerHome=(UserManagementHome)session.getAttribute("usermanagement"); 

       headerUser= headerHome.create(); 


     %> 
     Welcome <b><%=operatorId%></b> &nbsp;&nbsp; <a href="http://www.drivetrackplus.com" target="_blank">[Home]</a> | <a href="logout.jsp">[Logout]</a> 
     <br> 

     <%}%> 
     <%=(headerUser.getHierarchy(operatorId)!=null && !((headerUser.getHierarchy(operatorId)).equals(""))&& !((headerUser.getHierarchy(operatorId)).endsWith("null")))?headerUser.getHierarchy(operatorId):"" %> 

    </div> 
    <div class="clear"></div> 

    <div id="tabs"> 
     <% if (request.isUserInRole(RoleNames.CORP_GRP)){%> 
     <div class="tab" onClick="location.href='Corporate.jsp'"><div class="tabText">Customer</div></div> 
     <div class="tabSpacer">&nbsp;</div> 
     <%}%> 

     <%if (request.isUserInRole(RoleNames.MER_GRP)){%> 
     <div class="tabSelected" onClick="location.href='merchant.jsp'"><div class="tabTextSelected">Merchant</div></div> 
     <div class="tabSpacer">&nbsp;</div> 
     <%}%> 

     <%if (request.isUserInRole(RoleNames.ADMIN)){%> 
     <div class="tab" onClick="location.href='Admin.jsp'"><div class="tabText">Admin</div></div> 
     <div class="tabSpacer">&nbsp;</div> 
     <%}%> 

     <%if (request.isUserInRole(RoleNames.CONFIG_GRP)){%> 
     <div class="tab" onClick="location.href='config.jsp'"><div class="tabText">Config</div></div> 
     <div class="tabSpacer">&nbsp;</div> 
     <%}%> 

     <% if (request.isUserInRole(RoleNames.INTERFACE_GRP) || request.isUserInRole(RoleNames.CMS_UPLOAD) ||request.isUserInRole(RoleNames.CMS_DOWNLOAD) || request.isUserInRole(RoleNames.LPM_INTERFACE) || request.isUserInRole(RoleNames.ICICI_MP_INTERFACE) || request.isUserInRole(RoleNames.ICICI_MR_INTERFACE) || request.isUserInRole(RoleNames.CALL_REG_INTERFACE)){%> 
     <div class="tab" onClick="location.href='Interfaces.jsp'"><div class="tabText">Interfaces</div></div> 
     <div class="clear"></div> 
     <%}%> 
    </div> 
</div> 
    </div> 
+0

"location.href"를 "window.location.href"로 수정 했습니까? 이제는 그 두 가지 모두에서 잘 작동합니다.하지만 그 이유를 이해하지 못합니까? –

답변

0

의 코드 아래와 같다? 지금은 둘 다 잘 작동합니다.하지만 그 이유를 이해하지 못합니까?

관련 문제