473,499 Members | 1,747 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 2749
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******@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP09.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******@hotmail.com.nospam> wrote in message
news:ut**************@TK2MSFTNGP11.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******@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP09.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******@hotmail.com.nospam> wrote in message
news:ut**************@TK2MSFTNGP11.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******@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP09.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.FUNCTION();
Click a btn
window.opener.document.forms[0].BUTTONNAME.click();
Reload opener
window.opener.location.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******@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP09.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******@hotmail.com.nospam> wrote in message
news:ut**************@TK2MSFTNGP11.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******@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP09.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
10253
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...
38
5000
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...
4
22152
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...
6
9845
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...
3
4536
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...
1
11534
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...
3
1648
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...
11
7320
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...
5
8015
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: ...
0
7134
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
7225
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
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
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...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
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 ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.