473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 6177
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Gobée | last post by:
What is the parent element of a button (IE6 on Win, transitional mode)? Is it the BODY, the browser default stylesheet, or something else? Contra "body is parent-element": - Buttons with no...
5
by: Suzanne Vogel | last post by:
Hi, Given: I have a class with protected or private data members, some of them without accessor methods. It's someone else's class, so I can't change it. (eg, I can't add accessor methods to the...
9
by: jon wayne | last post by:
OK! I had this nagging doubt Consider (without worrying abt access specifiers) class Kid : public Parent{...}; Parent::someFunc() { Kid k; }
5
by: Zürcher See | last post by:
The Control class has the Parent property that is readonly. When the control is added to a controls collection of another control the Parent property refers to that control. "Who" set the Parent...
2
by: Roy | last post by:
Ok, this is incredibly annoying. Below I have an ImageButton and it's ImageButton_Click sub. See the 6 response.writes? The output for them is displayed below in asterisks. Question: What part of...
6
by: Ray Schumacher | last post by:
What is the feeling on using "parent" in a class definition that class methods can refer to, vs. some other organization ? Should all relevant objects/vars just be passed into the method as needed?...
2
by: Steven | last post by:
I have a page(pg1) which contains a select list (list1) in a form(form1) and an iframe(frame1), in this iframe is a page(pg2) with another select list(list2) in a form(form2) and I transfer the...
5
by: gnewsgroup | last post by:
In my user control, I would like to find a Label control in the parent page (the page that uses my user control). I need to update that Label.Text when something happens in the user control. I...
1
by: bnchs | last post by:
This is C code. I am trying to fill each node's Parent field with its parent because I am drawing nodes to the screen. However, I have not been able to get this working. Reading the output from the...
4
by: Andrew | last post by:
I want to create a set of Activity Diagram controls for process control. I need to create a base Diagram control that acts as a container for the Activity controls ( StartPoint, EndPoint,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.