|
-
May 9th, 2005, 06:35 AM
#1
Thread Starter
Hyperactive Member
Wait while popup screen is shown
Hi all,
I've got the following problem. I have a button on my screen which does two things:
- fire a javascript function to open a popup window
- fire a procedure in my code behind file.
But... the procedure in my code behind file should be fired when the popup window is closed...
Does anyone know how to achieve this goal?
Thanx in advance.
-
May 9th, 2005, 08:12 PM
#2
Frenzied Member
Re: Wait while popup screen is shown
You could make an invisible ServerSide button on the window.opener and call window.opener.__doPostBack('hidden_button',''); in javascript. The window.opener will fire the click event for the hidden button thus your code runs when the other page is done.
Magiaus
If I helped give me some points.
-
May 9th, 2005, 08:16 PM
#3
Frenzied Member
Donated by me
PostBackEvent. No one even said it was niffty. I think it's niffty.
Code:
<script language="JavaScript">function ExternalDone(){__doPostBack('extDoneEvent','');}//<!-- raises the PostBackEvent of the PostBackEvent Control named extDoneEvent -->
Last edited by Magiaus; May 9th, 2005 at 08:21 PM.
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|