By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

Parent-Child window communication

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.