62,046
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
//<![CDATA[
confirm('当前报表已存在,是否取出?提示:点击确定取出已存在报表,取消则重新创建报表。')?document.getElementById('btnReCreateNo').click():document.getElementById('btnReCreateYes').click();//]]>
/*网页错误详细信息
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
时间戳: Tue, 6 Jul 2010 07:53:18 UTC
消息: 'document.getElementById(...)' 为空或不是对象
行: 103
字符: 1
代码: 0
URI: http://localhost/xmes_develop/CustomReport/RtdbReportView.aspx?ResourceId=e8260767-1c17-4102-bd34-c3d62f807113&ZonePath=0%2fe8260767-1c17-4102-bd34-c3d62f807113
*/
<script type="text/javascript">
//<![CDATA[
confirm('当前报表已存在,是否取出?提示:点击确定取出已存在报表,取消则重新创建报表。')?document.getElementById('btnReCreateNo').click():document.getElementById('btnReCreateYes').click();//]]>
</script>
<script type="text/javascript" src="../JS/CustomReport/ReportView.js">
reportView.js内容为:
var waiting_win;
function OpenWaiting() {
waiting_win = window.open('../waiting.aspx', 'WaitingWin', 'left='
+ (screen.availWidth - 300) / 2 + ',top='
+ (screen.availHeight - 200) / 2 + ',width=300,height=200');
}
function window_OnUnLoad() {
alert(waiting_win);
if (typeof (waiting_win) != "undefined" && waiting_win != null) {
try {
waiting_win = window.open('../waiting.aspx', 'WaitingWin', 'left='
+ (screen.availWidth - 300) / 2 + ',top='
+ (screen.availHeight - 200) / 2 + ',width=300,height=200');
waiting_win.opener = null;
waiting_win.close();
}
catch (ex) { }
}
}
</script>
<script type="text/javascript">
function $(o) { return document.getElementById(o); }
window.onresize = resizeDivHtmlReport;
function resizeDivHtmlReport() {
$("divHtmlReport").style.height = self.document.body.clientHeight - 55;
}
var canCloseWindow = "true", isEnterButton;
function CanCloseWindow() {
if (canCloseWindow == "false") {
window.event.returnValue = "报表正在生成中, 离开当前页面将影响页面的正常浏览.";
}
if (isEnterButton) {
canCloseWindow = "false";
isEnterButton = false;
}
}
</script>