开发者

javascript window.opener.location.reload() alternative

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜