473,837 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Popup window to raise event in parent window...can it be done???

I am thinking about using a popup window to edit settings that will affect
parent asp.net page. The data that is changed in the popup window will be
saved to the datastore that is loaded and displayed by the parent page. In
order to refresh the parent page, I would like to raise an event in the
popup (child) page that is subscribed to by the parent so that I can rebind
the data in the parent page once the data in the child window data is saved.
Can anyone give my any advice on accomplishing this? Some code samples
would be great also, if anyone has done this.

Thanks in advance

Earl
Nov 18 '05 #1
4 2767
Hi Earl,

You need to do it using window.opener in the childwindow to post the parent
form.
Not sure if we have other better options too.

Cheers
Ashish M Bhonkiya

"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O0******** ******@TK2MSFTN GP09.phx.gbl...
I am thinking about using a popup window to edit settings that will affect
parent asp.net page. The data that is changed in the popup window will be
saved to the datastore that is loaded and displayed by the parent page. In
order to refresh the parent page, I would like to raise an event in the
popup (child) page that is subscribed to by the parent so that I can rebind the data in the parent page once the data in the child window data is saved. Can anyone give my any advice on accomplishing this? Some code samples
would be great also, if anyone has done this.

Thanks in advance

Earl

Nov 18 '05 #2

"Ashish M Bhonkiya" <bh******@hotma il.com.nospam> wrote in message
news:ut******** ******@TK2MSFTN GP11.phx.gbl...
Hi Earl,

You need to do it using window.opener in the childwindow to post the parent form.
Not sure if we have other better options too.

Cheers
Ashish M Bhonkiya

"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O0******** ******@TK2MSFTN GP09.phx.gbl...
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and displayed by the parent page. In order to refresh the parent page, I would like to raise an event in the
popup (child) page that is subscribed to by the parent so that I can

rebind
the data in the parent page once the data in the child window data is

saved.
Can anyone give my any advice on accomplishing this? Some code samples
would be great also, if anyone has done this.

Thanks in advance

Earl


Nov 18 '05 #3
Thanks Ashish...but I figured that much. I could really use some info on
raising an event in the child window that calls the event handler in the
parent window. Any ideas???

Earl

"Ashish M Bhonkiya" <bh******@hotma il.com.nospam> wrote in message
news:ut******** ******@TK2MSFTN GP11.phx.gbl...
Hi Earl,

You need to do it using window.opener in the childwindow to post the parent form.
Not sure if we have other better options too.

Cheers
Ashish M Bhonkiya

"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O0******** ******@TK2MSFTN GP09.phx.gbl...
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and displayed by the parent page. In order to refresh the parent page, I would like to raise an event in the
popup (child) page that is subscribed to by the parent so that I can

rebind
the data in the parent page once the data in the child window data is

saved.
Can anyone give my any advice on accomplishing this? Some code samples
would be great also, if anyone has done this.

Thanks in advance

Earl


Nov 18 '05 #4
Hi

Call a function
window.opener.F UNCTION();
Click a btn
window.opener.d ocument.forms[0].BUTTONNAME.cli ck();
Reload opener
window.opener.l ocation.reload( true);

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Visual: Scripting MVP 2000-2004
http://www.icysoft.com/
http://www.deus-x.com/ Instant e-commerce
http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )

No matter where you go there you are
=============== ===============
"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:e3******** ******@TK2MSFTN GP09.phx.gbl...
Thanks Ashish...but I figured that much. I could really use some info on
raising an event in the child window that calls the event handler in the
parent window. Any ideas???

Earl

"Ashish M Bhonkiya" <bh******@hotma il.com.nospam> wrote in message
news:ut******** ******@TK2MSFTN GP11.phx.gbl...
Hi Earl,

You need to do it using window.opener in the childwindow to post the

parent
form.
Not sure if we have other better options too.

Cheers
Ashish M Bhonkiya

"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O0******** ******@TK2MSFTN GP09.phx.gbl...
> I am thinking about using a popup window to edit settings that will affect > parent asp.net page. The data that is changed in the popup window will be > saved to the datastore that is loaded and displayed by the parent page. In > order to refresh the parent page, I would like to raise an event in the
> popup (child) page that is subscribed to by the parent so that I can

rebind
> the data in the parent page once the data in the child window data is

saved.
> Can anyone give my any advice on accomplishing this? Some code samples
> would be great also, if anyone has done this.
>
> Thanks in advance
>
> Earl
>
>



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
10289
by: KS | last post by:
Is it possible to write a javascript that makes a popup window when someone click on buttons/href on my page and close itself when the new page is about to get loaded? I want to prevent the user from clicking anything else on my page while the request is getting a new page. The popup window must lock the focus. I use frames i can not just disable all the buttons an href in different frames.
38
5101
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
4
22218
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list. What I want to do is have a control in the parent browser window which can store the class_id and the...
6
9860
by: mkobus | last post by:
Im relatively new, so please be patient with me... I need to update a parent .aspx screen from a popup and close the popup. Normally I would use 'window.opener.location.reload(true);self.close();' but i need the parent window not to reload or else data that the user has already entered will be lost during the IsPostBack. I need the 'Apply' button on the popup to trigger the 'Update' button on the parent screen. The script ive seen...
3
4555
by: EMW | last post by:
Hi, Is it possible with VB.NET and Javascript to popup a window, after a buttonclick, in which the user writes some text in a textbox and then when that window is closed with a button, the text is posted back to the aspx program? If it is possible, please let me know some articles about this? thanks,
1
11598
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
3
1672
by: Chrysan | last post by:
I have a popup window, which consist of a asp:textbox and a asp:button. And, I would like to pass the textbox.text to the javascript function when I click the button. Besides, by clicking the button, also close the popup window. The problem is, when I click the button, the textbox.text is successfully pass to the javascript function and the popup window will be closed, but the popup window will be opened again in maximize mode. I notice...
11
7373
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz 1.7.12 (linux kubuntu). It does work with konqueror. It seems to work with firefox on windows but not with IE (not completly sure though).
5
8046
by: midnight_use_only | last post by:
hi all, quick question, how do you submit a form to a parent window from a child popup window? i have the following and all online documentation *suggests* that it should work but it does NOT: // Parent window: <script language="JavaScript"> function popup(url, name) { window.open(url, name, "width=800,height=600,scrollbars=yes");
0
10882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10577
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10630
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7811
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7005
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4476
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.