开发者

javascript window.opener.location.reload() alternative

开发者 https://www.devze.com 2023-01-28 05:37 出处:网络
Onclicking a link on a page a popup window appears.This popup window has a form which on submit calls a struts action which has two outputs :-

Onclicking a link on a page a popup window appears.This popup window has a form which on submit calls a struts action which has two outputs :- if success - the popup should close and parent window should get the message and values updated in parent form if failure - then on the popup error message should be displayed. the serverside code is ready just dont know how i can implement logically the flow especialy on client window.

i m new to this and need advice 开发者_运维百科on how to implement the same. I tried javascript window opener follwed by window.close() but it does a redirect not a forward thus request attributes are lost and success message is not displayed in parent window.

Thanks for the help.


window.location.href=window.location.pathname;

Hope Help You

0

精彩评论

暂无评论...
验证码 换一张
取 消