You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by quinquin2209 <qu...@yahoo.com.hk> on 2007/12/17 05:40:17 UTC
Refresh parent browser when form in pop-up browser is submitted
Hi All,
In my application, user can open a member profile in the main page. The
member profile is opened in a pop-up window and user can edit the profile.
When user submits the form in pop-up browser, I want to close the pop-up
browser, refresh the parent browser to reflect change and also display the
actionError or actionMessage while processing the profile editing.
Any suggestion in how I can achieve it?
Thanks in advance
Queenie
--
View this message in context: http://www.nabble.com/Refresh-parent-browser-when-form-in-pop-up-browser-is-submitted-tp14370069p14370069.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Refresh parent browser when form in pop-up browser is submitted
Posted by zainu <ab...@lmkr.com>.
Hi,
You can use theh following JS function.Hope it will solve your
problem...Just call this script from the popup's submit button..
function refreshBack()
{
linkss="parentAction.do";
window.opener.location=linkss;
window.close();
}
quinquin2209 wrote:
>
> Hi All,
>
> In my application, user can open a member profile in the main page. The
> member profile is opened in a pop-up window and user can edit the profile.
> When user submits the form in pop-up browser, I want to close the pop-up
> browser, refresh the parent browser to reflect change and also display the
> actionError or actionMessage while processing the profile editing.
>
> Any suggestion in how I can achieve it?
>
> Thanks in advance
>
> Queenie
>
--
View this message in context: http://www.nabble.com/Refresh-parent-browser-when-form-in-pop-up-browser-is-submitted-tp14370069p14613550.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
回复:Refresh parent browser when form in pop-up browser is submitted
Posted by 张云勇 <ev...@163.com>.
use javascript to call a parent page's action when the pop-window closed,in the action you can do what you do^_^
在2007-12-17,quinquin2209 <qu...@yahoo.com.hk> 写道:
>Hi All,
>
>In my application, user can open a member profile in the main page. The
>member profile is opened in a pop-up window and user can edit the profile.
>When user submits the form in pop-up browser, I want to close the pop-up
>browser, refresh the parent browser to reflect change and also display the
>actionError or actionMessage while processing the profile editing.
>
>Any suggestion in how I can achieve it?
>
>Thanks in advance
>
>Queenie
>--
>View this message in context: http://www.nabble.com/Refresh-parent-browser-when-form-in-pop-up-browser-is-submitted-tp14370069p14370069.html
>Sent from the Struts - User mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>