468,771 Members | 1,847 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

Parent-Child window communication

SJ
Here's the scenario

Website has a button that pops up a confirmation window
when clicked.
When the user clicks the "confirm" button in this popup
window, I want all the following to happen :
a) Form data on the Parent (opener) page to be submitted.
b) Some (asp.net) code behind executed for the Parent
page.
c) Pop-Up window to close.

What would be the best approach to do this?

-SJ
Sep 18 '05 #1
3 5967
SJ said the following on 9/17/2005 11:11 PM:
Here's the scenario

Website has a button that pops up a confirmation window
when clicked.
When the user clicks the "confirm" button in this popup
window, I want all the following to happen :
A popup window or a confirm dialog? Use a confirm dialog.
a) Form data on the Parent (opener) page to be submitted.
Easy enough with a confirm dialog.
b) Some (asp.net) code behind executed for the Parent
page.
What happens on the server with the submitted form is irrelevant.
c) Pop-Up window to close.
self.close();
But, with a confirm dialog that is not needed.
What would be the best approach to do this?


Use Javascript.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 18 '05 #2
SJ
Randy Webb wrote:
SJ said the following on 9/17/2005 11:11 PM:
Here's the scenario

Website has a button that pops up a confirmation window
when clicked.
When the user clicks the "confirm" button in this popup
window, I want all the following to happen :

A popup window or a confirm dialog? Use a confirm dialog.
a) Form data on the Parent (opener) page to be submitted.

Easy enough with a confirm dialog.
b) Some (asp.net) code behind executed for the Parent
page.

What happens on the server with the submitted form is irrelevant.
c) Pop-Up window to close.

self.close();
But, with a confirm dialog that is not needed.
What would be the best approach to do this?


Use Javascript.


Thank you. Sounds like what I needed.

-SJ
Sep 18 '05 #3
SJ
Randy Webb wrote:
SJ said the following on 9/17/2005 11:11 PM:
Here's the scenario

Website has a button that pops up a confirmation window
when clicked.
When the user clicks the "confirm" button in this popup
window, I want all the following to happen :

A popup window or a confirm dialog? Use a confirm dialog.
a) Form data on the Parent (opener) page to be submitted.

Easy enough with a confirm dialog.
b) Some (asp.net) code behind executed for the Parent
page.

What happens on the server with the submitted form is irrelevant.
c) Pop-Up window to close.

self.close();
But, with a confirm dialog that is not needed.
What would be the best approach to do this?


Use Javascript.


Just out of curiosity, What if I want to pop-up a window with
some form data that needs to be submitted? Would it be wise
to have a pop-up like that or just change my design to incorporate
this form data into my main-page?
The reason I ask this is because don't browsers like firefox do a
real good job of preventing pop-up windows? Is it possible to fool
the browser and open a window anyway? If so, how.

-SJ
Sep 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Zürcher See | last post: by
6 posts views Thread by Ray Schumacher | last post: by
2 posts views Thread by Steven | last post: by
4 posts views Thread by Andrew | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.