Results 1 to 3 of 3

Thread: Wait while popup screen is shown

  1. #1

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310

    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.

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    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.

  3. #3
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Angry 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
  •  



Click Here to Expand Forum to Full Width