materialcheckup.jsp 中调js( function calculateCharge() )执行
window.showModalDialog("<%=request.getContextPath()%>/servlet/calculatecharge?"+parmString,window,
"dialogWidth=810px;dialogHeight=670px;center:yes;edge:sunken;help:no;resizable:no;
scroll:yes;status:no;unadorned:no");
打开模态出口。
calculateCharger.jsp 则 执行js:
window.returnValue="核算费用完成。"; // window.showModalDialog()的返回值。
window.dialogArguments.location.reload(); // 刷新父页面materialcheckup.jsp
window.close(); // 关闭子窗口。即当前焦点所在的窗口。
----------------------------------------------------------------------------
// materialcheckup.jsp
//calculateCharger.jsp