You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brandon Mercer <br...@eutonian.com> on 2005/01/27 16:04:40 UTC

Popup window submitting to action

Hello,
I've got a slighty off topic question for the group.  I've got a pop-up 
window that I use in my application where my client can create a new 
contact.  I wish to have the information write to the database, and 
close the pop-up window, and then refresh the page it came from.  I know 
this can be done, and I wondered if anyone could show me what I need to 
do to trigger that stuff.  Thanks
Brandon

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Popup window submitting to action

Posted by Re...@Approach.be.
Hello Brandon,

You could do the following: after submitting the form in the pop up 
window, redirect to a page that:
 1/ Refreshes its parent with javascript (opener), 
2/ closes itself (with javascript, again)

You can fire the 2 events in the onload event of the body.

HTH
Renaud

PS: This is independent of Struts use.







Brandon Mercer <br...@eutonian.com> 
27/01/2005 16:04
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
Struts Users Mailing List <us...@struts.apache.org>
cc

Subject
Popup window submitting to action






Hello,
I've got a slighty off topic question for the group.  I've got a pop-up 
window that I use in my application where my client can create a new 
contact.  I wish to have the information write to the database, and 
close the pop-up window, and then refresh the page it came from.  I know 
this can be done, and I wondered if anyone could show me what I need to 
do to trigger that stuff.  Thanks
Brandon

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



Re: Popup window submitting to action

Posted by bala pamarti <ki...@yahoo.com>.
Brandon,

I was looking for the same functionality in my
application. Can you please post your code/sample
code. 

TIA,
Bala
---

--- Brandon Mercer <br...@eutonian.com> wrote:

> Hello,
> I've got a slighty off topic question for the group.
>  I've got a pop-up 
> window that I use in my application where my client
> can create a new 
> contact.  I wish to have the information write to
> the database, and 
> close the pop-up window, and then refresh the page
> it came from.  I know 
> this can be done, and I wondered if anyone could
> show me what I need to 
> do to trigger that stuff.  Thanks
> Brandon
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org