|
本帖最后由 /sun_lion 于 2014-11-6 00:59 编辑
ExtAspNet.dll使用的是3.1.9.2。向父页面添加选项卡 在IE8下正常,在IE11下点击后tab页一闪,然后刷新当前页,没有tab页出现。折腾了一天还没解决,各位大牛们,帮忙看看,谢谢了。
js代码:
var tabs_Main = Ext.getCmp(IDS.tabs_Main);
window.addExampleTab = function (id, url, text, icon) {
X.util.addMainTab(tabs_Main, id, url, text, icon);
}
当前页面代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cube2.aspx.cs" Inherits="Management_Cube_Cube2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>科技创新</title>
<link rel="stylesheet" type="text/css" href="../Css/main.css" />
<script type="text/javascript">
if (top == window) {
window.location.href = "../default.aspx#/Cube/cube2.aspx";
}
function openCube1() {
var node = {
attributes: {
href: "/DeptControl_JHTJ/JHZB/Default.aspx?Standby1=计划指标&Category=计划统计",
icon: "~/Management/Icons/folder_star.png"
},
text: "计划指标",
id: "Cube2Child1"
};
parent.addExampleTab.apply(parent, [node]);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table style="margin:0 auto;margin-top:60px">
<tr>
<td>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../Icons/Cube21.jpg"
/>
</td>
</tr>
</table>
<extageManager ID="pm_Main" AutoSizePanelID="rpnl_Main" runat="server" />
</form>
</body>
</html>
|
|