因为业务处理,需要打开模式窗口,因为打开的新窗口还要处理数据,所以先弹出一个div(就是坑爹的:"正在努力为您加载,还有一个雪花转啊转"),等数据加载完之后,在关闭div再打开模式窗口
业务界面:process.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <html> <head> <title>车辆基本信息</title> <script type="text/javascript"> function isdisplay3(){ document.getElementById('doing').style.visibility='visible'; //reValue接受从模式窗口返回的数据 var reValue = window.showModalDialog("/bayonetcall/ModalWindow.jsp",window,'resizable:yes;scroll:yes;status:no;dialogWidth=550px;dialogHeight=450px;center=yes;help=no'); // document.getElementById('doing').style.visibility='hidden'; } </script> </head> <body> <input type="button" value="层" onclick="isdisplay3()" /> <div id="doing" style="left: 0%; top: 0%; width: 100%; height: 100%; VISIBILITY: hidden; position: absolute; z-index: 12000;"> <table width="100%" height="100%"> <tr align="center" valign="middle"> <td> <table width="100%" height="30%" bgcolor="#E0E0E0" style="FILTER: Alpha(Opacity = 80); WIDTH: 280px; HEIGHT: 130px" border="0"> <tr align="center" valign="middle"> <td width="90%" align="center"> <img src="../images/indicator.gif"> <FONT size="2"><strong>正在加载字典项,请稍候...</strong> </FONT> </td> </tr> </table> </td> </tr> </table> </div> </body> </html>