注册 登录
编程论坛 ASP技术论坛

框架刷新还报错,我真的错了吗?

boyfuture 发布于 2007-10-24 00:04, 369 次点击

<script language="javascript">
marketcontleftcontent.location.reload();
arrangeleftcontent.location.reload();
</script>
我在页面中加入了这段代码,但是页面刷新后提示有错误,以上两个框架arrangeleftcontent,marketcontleftcontent是在本页中的,我想打开本页后刷新里面的框架,看看那里有错啊,谢谢啊!

另外请帮我解释一下这段代码怎么用,有点看不懂,测试怎么用啊?,谢谢了!(搜到的好东东啊)
刷新框架页
〈script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload();</script〉

弹出窗体后再刷新的问题

(Response.Write("<script>window.showModalDialog('../OA/SPCL.aspx',window,'dialogHeight: 300px; dialogWidth: 427px; dialogTop: 200px; dialogLeft: 133px')</script>");//open
Response.Write("<script>document.location=document.location;</script>");

在子窗体页面代码head中加入<base target="_self"/>

刷新的内容加在 if (!IsPostBack) 中)

谢谢!

0 回复
1