467,169 Members | 1,034 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

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

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
  • viewed: 2490
Share:
4 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

38 posts views Thread by Shaun McKinnon | last post: by
6 posts views Thread by mkobus | last post: by
3 posts views Thread by EMW | last post: by
11 posts views Thread by Alex.Svetos@gmail.com | last post: by
5 posts views Thread by midnight_use_only@yahoo.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.