日期:2014-05-17 浏览次数:20704 次
function OpenWindowsHzw(FileName, OpenW, OpenH) {
var w, h, str;
w = (window.screen.availWidth - 27) / 2 - OpenW / 2;
h = (window.screen.availHeight - 8) / 2 - OpenH / 2;
str = "width=" + OpenW + ",height=" + OpenH + ",top=" + h + ",left=" + w
+ ",resizable=0,scrollbars=yes";
var newWin = window.open(FileName, "window", str);
newWin.focus();
}
function doEdit() {
var id = $("#hiddenid").val();
if (null == id || "" == id) {
return alert('请选择会议室!');
}
var str = "<%=path%>/platform/meetresedit!getMeetById.action?meetResId=" + id;
alert(str);
OpenWindowsHzw(str,550,400);
window.location.reload();
}
String meId = null;
try {
//这种方式也是鸟的
Object obj = ActionContext.getContext().get("meetResId");
//有时候、跑到这一句的时候、报空指针异常
meId = request.getParameter("meetResId");
} catch (Exception e) {
e.printStackTrace();
}