如何刷新目标窗口? [英] How do I refresh target window?
问题描述
大家好:
我有一个弹出窗口供用户提交一些信息。
该窗口被刷新了几次用户输入(其形式
本身提交......几次)。我希望那个窗口关闭
用户提交评级并刷新原始页面
打开窗口。
我不能使用opener.document.refresh,因为页面不是后来的
在用户在弹出的窗口上发布信息之后被认为是开启者。
我有什么意义吗?
si ****** @ gmail.com 写道:你好所有:
我有一个弹出窗口供用户提交一些信息。
该窗口用用户输入重新刷新几次(它的表格本身提交了几次......)。我想在用户提交评级并刷新打开窗口的原始页面后关闭
窗口。
我不能使用opener.document.refresh因为毕竟页面isnt
在用户在pop窗口上发布信息之后被视为开启者。
我有什么意义吗?
>
是的,但它是同一个窗口,它是关心的窗口。理论上,最低价格为
。 :)
这是重装,而不是刷新。
试一试。
self.opener.document.reload(true);
nikkiaécrit:si ****** @ gmail.com 写道:
你好所有:
我有一个弹出窗口供用户提交一些信息。
那个窗口用用户输入重新刷新几次(它的表格本身就是提交的......一对时间)。我想在用户提交评级并刷新打开窗口的原始页面后关闭
窗口。
我不能使用opener.document.refresh因为毕竟页面不是
在用户在pop窗口上发布信息之后被认为是开场白。
我有什么意义吗?
是的,但它是同一个窗口,它是关心的窗口。至少在理论上。 :)
它重新加载,而不是刷新。
试一试。
self.opener.document.reload(true );
reload是一种定位方法,而不是文档方法。
原始海报需要什么,我很确定他做的不需要
重新加载开启者。
$ b $bGérard
-
删除等等电子邮件我
Nop Not Working ....
我的代码是(供参考......)
父母:
函数newwindow(url){
newwindow2 = window.open('''',' 'CallMePopUp'',''status = no,scrollbars = yes'');
var tmp = newwindow2.document;
tmp.write(''< html> ;< head>< title>< / title>'');
tmp.write(''< / head>< body>< form name =" formName" method =" post"
action =" calc.php">'');
tmp.w rite(''< input type =" hidden" name =" prodh" value =" bred">'');
tmp.write(''< / form>'');
tmp.write(''< ; / body>< / html>'');
tmp.close();
tmp.formName.submit();
}
关于chiled:
函数退出()
{
//opener.document.form [''new_entry'']。submit();
self.opener.document.reload(true);
close();
}
引用的是我之前使用过的......
hello all:
I have a pop up window is for the user to submit some information.
That window is refreched a few times with the user inputs (its a form
submit in itself... couple of times). I would like that window to close
after the user submits a rating and refreshed the original page that
opened the window.
I cant use opener.document.refresh because afterall the page isnt
considered the opener after the user posts the information on the pop
up window.
am i making any sense?
si******@gmail.com wrote:hello all:
I have a pop up window is for the user to submit some information.
That window is refreched a few times with the user inputs (its a form
submit in itself... couple of times). I would like that window to close
after the user submits a rating and refreshed the original page that
opened the window.
I cant use opener.document.refresh because afterall the page isnt
considered the opener after the user posts the information on the pop
up window.
am i making any sense?
Yes, but it is the same window, and it''s the window that cares. At
least, in theory. :)
And it''s reload, not refresh.
Give it a shot.
self.opener.document.reload(true);
nikki a écrit :si******@gmail.com wrote:hello all:
I have a pop up window is for the user to submit some information.
That window is refreched a few times with the user inputs (its a form
submit in itself... couple of times). I would like that window to close
after the user submits a rating and refreshed the original page that
opened the window.
I cant use opener.document.refresh because afterall the page isnt
considered the opener after the user posts the information on the pop
up window.
am i making any sense?
Yes, but it is the same window, and it''s the window that cares. At
least, in theory. :)
And it''s reload, not refresh.
Give it a shot.
self.opener.document.reload(true);
reload is a location method, not a document method.
And what the original poster needs, I am pretty sure he does not need to
reload the opener.
Gérard
--
remove blah to email me
Nop Not Working....
My code is (for the reference...)
On teh parent:
function newwindow(url) {
newwindow2=window.open('''',''CallMePopUp'',''status=no ,scrollbars=yes'');
var tmp = newwindow2.document;
tmp.write(''<html><head><title></title>'');
tmp.write(''</head><body><form name="formName" method="post"
action="calc.php">'');
tmp.write(''<input type="hidden" name="prodh" value="bred">'');
tmp.write(''</form>'');
tmp.write(''</body></html>'');
tmp.close();
tmp.formName.submit();
}
On the chiled:
function exit ()
{
//opener.document.form[''new_entry''].submit();
self.opener.document.reload(true);
close ();
}
The quoted is the one I used before...
这篇关于如何刷新目标窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!