0
我編寫了一個頭文件,其中包括一些tabs.this頭文件是包含在jsps的website.in兩個jsp頁面標籤不工作在互聯網探索,但在其他jsps其工作fine.in firefox每個標籤在每個jsps工作正常。下面的 是包含頭部的jsp的代碼部分。標籤鏈接不在workinh在Internet Explorer中,但在Firefox中工作正常
<!-- Header Start -->
<!-- standard header bar with logo -->
<%@ include file="ssi/header1.ssi"%>
<!-- end of standard header bar with logo -->
<!-- Header End -->
頭文件的選項卡部分示於下header1.ssi
<div id="header">
<div class="headerInner">
<div class="logo"> </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> <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"> </div>
<%}%>
<%if (request.isUserInRole(RoleNames.MER_GRP)){%>
<div class="tabSelected" onClick="location.href='merchant.jsp'"><div class="tabTextSelected">Merchant</div></div>
<div class="tabSpacer"> </div>
<%}%>
<%if (request.isUserInRole(RoleNames.ADMIN)){%>
<div class="tab" onClick="location.href='Admin.jsp'"><div class="tabText">Admin</div></div>
<div class="tabSpacer"> </div>
<%}%>
<%if (request.isUserInRole(RoleNames.CONFIG_GRP)){%>
<div class="tab" onClick="location.href='config.jsp'"><div class="tabText">Config</div></div>
<div class="tabSpacer"> </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>
我已經修改了「location.href」到「window.location.href」嗎?現在在其工作的罰款both.but我不明白它背後原因是什麼? – 2009-09-10 05:48:06