- 浏览: 789352 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (248)
- Struts1.x (3)
- Java (24)
- SQL (8)
- 错误汇总/Java (7)
- 错误汇总/JDBC (1)
- 错误汇总/lomboz_eclipse_Hibernate proposals (1)
- 错误汇总/javascript (3)
- 错误汇总/Hibernate + JPA (1)
- 错误汇总/dwr (1)
- hibernate3.X (10)
- Struts2.x (5)
- 概念/JPA (1)
- 概念/JTA (1)
- dwr (1)
- JSTL (1)
- English (6)
- Java/awt (4)
- design_pattern/Observer (2)
- 项目管理 (1)
- Java面试题 (7)
- Linux/Unix (4)
- 服务器/WAS6.0 (1)
- 服务器/WAS6.1 (5)
- 服务器/JBoss (2)
- 收藏 (4)
- 服务器/Tomcat6.X (2)
- 错误汇总/Struts2.X (3)
- JavaRebel (1)
- 小技巧 (3)
- 版本控制 (1)
- 错误汇总/Tomcat6.X (2)
- 错误汇总/Cactus (1)
- HttpUnit (1)
- 错误汇总/Struts1.x (2)
- 数据库/Oracle (6)
- 小技巧/MyEclipse (1)
- javascript (21)
- OGNL (1)
- JSP (2)
- 报表/BIRT (5)
- jquery (6)
- ec:table&ec:side (1)
- Java/Date (1)
- C# (2)
- NC (32)
- oracle (10)
- Ant (1)
- Eclipse (1)
- 迷茫 (1)
- swing (3)
- 数据库/MySQL (2)
- 装机 (3)
- 名词解释/NC (3)
- java/算法 (1)
- HTML (1)
- 分布式 (2)
- flex (5)
- SSI(spring+struts_ibatis) (1)
- UML (1)
- ajax (1)
- Flex 背景透明 (1)
- Android (8)
- 正则 (2)
- linux (1)
最新评论
-
yizishou:
IE9- Only
javascript中createTextRange用法(focus) -
huanzei:
还可以了,po主的第一个方法可行,第二个方法没有试
jsp表格的表头固定不动 -
javams:
Soongtracy 写道方法二完全不行啊亲,你自己有木有试过 ...
jsp表格的表头固定不动 -
mengy163163:
您好,有个问题想请教一下:"birt生成Excel缺 ...
BIRT报表 -
zzy2011266:
楼主,你找到原因了吗?这是为啥?貌似是JVM出bug了
JAVA异常 EXCEPTION_ACCESS_VIOLATION (0xc0000005)
2个方法都是刷新父窗口,但是其中还是有奥妙的哦。 window.opener其实是指本窗口的父窗口,比如,one.jsp 通过popupwindow打开了two.jsp,哪么在two.jsp里面的window.opener就是指one.jsp,所以在two.jsp里面完全可以用window.opener调用任何一个one.jsp里面的方法,实现one.jsp和two.jsp的交互。 注意:window.opener.location.href只是一个链接,如果想实现父窗口的提交就要调用window.opener.action="" 和window.opener.submit(); 方法,但是不幸的是这段代码在firefox下不能运行,解决的办法为在父窗口中写一个提交的function在子窗口中通过window.opener.functionname()调用。 通常在使用window.opener的时候要去判断父窗口的状态,如果父窗口被关闭或者更新,就会出错,解决办法是加上如下的验证if(window.opener && !window.opener.closed)
window.opener.location.reload(); 这个方法在强迫父窗口的时候,在有些IE浏览器(比如安全设置高)的情况下,会弹出一个确认对话框,提示是不是要重新再刷新一次页面,这可是比较郁闷的事情哦,我后来把这个方法替换成了window.opener.location.href=window.opener.location.href;
就不会出现那样的问题了。
发表评论
-
常用表单验证正则表达式
2015-02-02 08:55 12371.由数字、26个英文字母 ... -
取得当前节点下第一个元素的文本内容
2014-10-10 17:41 959取得checkbox前面的文本内容: <tr id= ... -
JS刷新父窗口的几种方式
2014-09-28 16:54 872浮层内嵌iframe及frame集合窗口,刷新父页面的多种 ... -
jquery 设置select初始值
2013-12-01 16:40 1809<select id="tAddrId ... -
loaction.reload()方法,页面缓存问题
2013-07-24 09:37 1088loaction.reload(false)和location ... -
js 日期转为yyyy-MM-dd格式的字符串
2013-03-07 11:12 0// 获取当前日期 var getTod ... -
js校验邮箱
2011-11-22 16:06 1768<script type="text/java ... -
a标签中定义onclick方法后,链接不起效
2011-11-22 15:11 1348location.href = '/system/compan ... -
IE6中列表挡住div的解决
2011-03-16 14:04 1081在列表和div中加入一层<iframe> ... -
JavaScript IE打印接口带自动分页
2009-09-15 11:49 29491)在body中加入这个object (调用window的组件 ... -
JavaScript出生日期的验证
2009-09-01 16:22 2093function showDates(){ var ... -
javascript中String 对象属性和方法
2009-08-26 09:39 1364属性 1.constructor 指定创 ... -
从身份证中自动提取出生日期、年龄、性别
2009-08-11 09:37 4651从身份证中提取出生日期、年龄、性别 <html&g ... -
在javascript里 string 和 int 类型得相互转换
2009-07-28 18:32 5041在javascript里怎么样才能把int型转换成string ... -
js 动态显示时间
2009-07-13 21:31 1208方法一: <SCRIPT language=Ja ... -
javascript验证身份证
2009-07-08 09:59 1395<script> //检验身份证 func ... -
TextRange对象
2009-07-04 12:32 1517TextRange对象是动态HTML(DHTML)的高级特性, ... -
javascript中createTextRange用法(focus)
2009-07-04 12:00 36422createtextrange createrange区 ... -
location的各个属性
2009-06-27 15:15 1435hash——Specifies an anchor name ... -
javascript判断一个变量是否为undefined
2009-06-22 10:47 2810方法之一: var SomeVar; ...
相关推荐
window.opener.location.href = window.opener.location.href 刷新以winodw.showModelDialog()方法打开的窗口 window.parent.dialogArguments.document.execCommand('Refresh'); 或 Response.Write("<script>...
使用[removed].reload;...window.opener.location.href=window.opener.location.href; window.opener.location.reload(); 这种写法就不出现那讨厌的对话框啦! 介绍JS实现刷新iframe的方法 <iframe src=”1.ht
window.opener.location.reload()刷新父窗口window.opener.location.reload() 与 window.opener.location.href=window.opener.location.href 都是弹出窗口关闭时用来刷新父窗口。 但[removed].Reload 如果有数据提交...
// 刷新父页面。此段代码放在被弹出的页面 function refreshOpener() { ... if (win.opener) win.opener.location.reload();//或parent.location.reload(); } catch (ex) { } } ......................
代码如下: this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, “window.opener.location.reload();alert(‘销帐成功!’);”, true); 主要是这段js代码:window.opener.location.reload...
//-----------按钮提示框----------// ...window.opener.location.reload();window.close()">返回</a> javaScript:window.location.reload();//返回当前页并刷新 。。。。。。。。。。。。。。。。。。。。
//获取父页面 //parent.location.reload(); //刷新父页面 if (parent != null && parent != “undefined”) { window.returnValue = value; //返回值 window.close(); //关闭子页面 } //window.opener.document....
使用window.open()弹出的弹出窗口,刷新父窗口 window.opener.location.reload() 使用window.showDialog弹出的模式窗口 window.dialogArguments.location.reload(); 2.javascript弹出窗口的两种实现方式 —下面给...
本文实例讲述了JS实现刷新父页面不弹出提示框的方法。分享给大家供大家参考,具体如下: A页面 open方式出 B... window.opener.location.reload(); window.opener = null; window.open('','_self'); window.close
89.window.location.reload()刷新当前页面. 90.window.history.back()返回上一页,window.history.forward()返回下一页,window.history.go(返回第几页,也可以使用访问过的URL) 91.document.write()不换行的输出,...
网上找了好长时间 大都是window.opener.location.reload(),等等 都不是我想要的 最后终于发现了一个 想知道的就往下看看吧 showModalDialog和showModelessDialog 一、showModalDialog和showModelessDialog有什么不同...
24.指定当前显示链接的位置:window.location.href="URL" 25.取出窗体中的所有表单的数量:document.forms.length 26.关闭文档的输出流:document.close(); 27.字符串追加连接符:+= 28.创建一个文档元素:document....
opener.closed){ opener.location.reload(true); } setTimeout : 延迟多长时间执行什么方法,具体使用://www.jb51.net/article/35535.htm opener: 指parent表示父窗口,比如一个A页面利用iframe或frame调用B页面,...
浮层内嵌iframe及frame集合窗口,刷新父页面的多种方法 [removed] parent.location.reload(); [removed] [removed] ... window.opener.location.reload(); [removed] [removed] window.opener.location.
setTimeout("self.location.reload();",5000); //js 定时关闭窗口(ie和FF中测试过) //6秒后自动关闭当前窗口 setTimeout("window.opener=null;window.close()",6000); 下面给大家介绍下javascript定时器使用 使用...
代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)... //使用浏览器刷新功能 window.opener.location.reload(); 使用showModalDialog方法 window.returnValue = ‘refresh’;
代码如下: $.ajax( { type : “POST”, url : “<%=request.getContextPath()%>/control/daControlAction_updateEmotecontrol.action”, data : $(“#form1”).serialize(), ... window.opener.location.reload
用iframe、弹出子页面刷新父页面iframe ...window.opener.location.reload(); [removed] 子窗口刷新父窗口 [removed] self.opener.location.reload(); [removed] 刷新以open()方法打开的窗口 [removed] win
但是过程相对复杂一点,... }else{ //FIREFOX opener.location.reload(); } window.close(); [removed]document.all这个属性,IE下可以使用,而FF下不能使用,利用这一点。就可以针对 不同的浏览器,来执行对应的程序。
1.用iframe、弹出子页面刷新父页面... window.opener.location.reload(); [removed] 3.子窗口刷新父窗口 [removed] self.opener.location.reload(); [removed] 4.刷新以open()方法打开的窗口 <script language=J