I wanna put dhtmlXTabBar in dhtmlXWindows by。
The following is part of the code(js):
①window.onload = function() {
dhxWins = new dhtmlXWindows();
dhxWins.attachViewportTo(“edit”); //the “edit” is the name of one div
dhxWins.setImagePath(“dhtmlx/imgs/”);
var windid = document.getElementById(“basequerytype”).value;
wind = dhxWins.createWindow(windid,
document.body.clientWidth / 2 - 940 / 2,
document.body.clientHeight / 2 - 580 / 2, 940, 580);
dhxWins.window(windid).denyMove();
wind.denyResize();
wind.button(“close”).disable();
wind.button(“minmax1”).hide();
wind.button(“park”).hide();
wind.hide();
tabbar = new dhtmlXTabBar(“tabbar”, “top”);
tabbar.setSkin(‘dhx_skyblue’);
tabbar.setImagePath(“dhtmlx/imgs/”);
tabbar.addTab(“QAR_single”, “QAR单主单”, “200px”);
tabbar.addTab(“QAR_dispose”, “QAR单问题处理”, “200px”);
tabbar.setContent(“QAR_single”, “winVP1”);
tabbar.setContent(“QAR_dispose”, “winVP3”);
tabbar.setTabActive(“QAR_dispose”);
tabbar
.attachEvent(
“onSelect”,
function(id, oid) {
if (id == “QAR_single”)
showtab2();
showtab2();
if (id == “QAR_dispose”) {
showtab2list();
}
return true;
});
…
}
②function modi() {
var id = datalist.getSelectedRowId();
document.getElementById(“tab2id”).value=id;
//datalist3.clearAll();
tabbar.setTabActive(“QAR_single”);
var id = datalist.getSelectedRowId();
if ((“” == id) || (null == id)) {
alert(“请选择要修改的选项!”);
return;
} else {
wind.setText(“QAR单”);
wind.attachObject(“edit”);
wind.progressOn();
wind.setModal(true);
wind.show();
}
}
=================
The following is part of the code(jsp)