免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1672 | 回复: 1
打印 上一主题 下一主题

ShowModelDialog ie5 关闭窗体的问题?难 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-09 16:41 |只看该作者 |倒序浏览
本帖最后由 edns 于 2010-02-09 16:43 编辑

a1.js
----------

function ShowModelDialog1(url){
var iWidth=600; //窗口宽度
var iHeight=400;//窗口高度
var iTop=(window.screen.height-iHeight)/2;
var iLeft=(window.screen.width-iWidth)/2;
window.showModalDialog(url,window,"dialogHeight: "+iHeight+"px;dialogWidth: "+iWidth+"px;dialogTop: "+iTop+"; dialogLeft: "+iLeft+"; resizable: no; status: no;scroll:no");

}

1.php
-----------
<a href="#" onclick="return ShowModelDialog1('2.php')">insert </a>
2.php
-------------
<form  name="form1" method="get" action="3.php" >

3.php
-----------
<head>
<base   target="_self">  
</head>
<body>
<?php
$testdb=mysql_connect("localhost","root","123456");
mysql_select_db("mywebdb",$testdb);
$zc_id=$_GET['zc_id'];

$sqlstr="INSERT INTO abc (zc_id) VALUES('".$zc_id."')";
mysql_query($sqlstr,$db);
?>
<script>this.window.close();</script>

</body>

===========
为什么自动关闭3.php页面,还要返回一个提示,问我要不要关闭???(我的是ie5,在ie6,ie8中能正常关闭)
请高手指点! 多谢!!!

预祝大家新年快乐,万事顺心!!!

论坛徽章:
0
2 [报告]
发表于 2010-02-10 11:27 |只看该作者
没有一个人知道???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP