closing parent after pop up appears

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default closing parent after pop up appears

    hi

    I open a pop up window using window.showModalDialog. How can I close the
    parent window after the pop up appears ?


    sramruttun Guest

  2. Similar Questions and Discussions

    1. Parent script calling another parent script
      For the enemy in my game I let one parent script check if the distance between the player and the enemy is low enough. When it is, it calls another...
    2. ?????????? appears in Access
      when inserting text into an Access database ?????????? sometimes appears Could anybody tell me what this is please??
    3. Loaded MC appears way too big, why? Please help!
      Hi guys ,hope you can help me out again! After worrying myself sick about converting to flash 2004 I have finally got myself a demo version and am...
    4. Movie Closing?? & Windows Closing??
      > Can anyone tell me why when I create a projector, it closes after about 10th of a second, it simply opens and closes stright away. Do you have a...
    5. #24735 [NEW]: call_user_func on parent method does not use parent private property
      From: tater at potatoe dot com Operating system: OS X 10.2 PHP version: 5CVS-2003-07-21 (dev) PHP Bug Type: Zend Engine 2...
  3. #2

    Default Re: closing parent after pop up appears

    window.showModalDialog(...)
    window.close();

    will first launch your window, then close itself....

    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > hi
    >
    > I open a pop up window using window.showModalDialog. How can I close the
    > parent window after the pop up appears ?
    >
    >

    Daniel Bass Guest

  4. #3

    Default Re: closing parent after pop up appears

    Check out this article, here i have explained how you can close the popup
    window
    [url]http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx[/url]

    --
    Saravana
    Microsoft India Community Star,MC**
    [url]www.ExtremeExperts.com[/url]



    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > hi
    >
    > I open a pop up window using window.showModalDialog. How can I close the
    > parent window after the pop up appears ?
    >
    >

    Saravana Guest

  5. #4

    Default Re: closing parent after pop up appears

    Hi

    You cant close the opener if you use a dialog until the dialog closes
    use window.open instead.....

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > hi
    >
    > I open a pop up window using window.showModalDialog. How can I close the
    > parent window after the pop up appears ?
    >
    >

    Vidar Petursson Guest

  6. #5

    Default Re: closing parent after pop up appears

    thanks everyone for your replies
    Daniel said:
    window.showModalDialog(...)
    window.close();
    well I had tried this but it does not work..

    Saravana is suggesting an article on how to close the POP UP WINDOW while I
    want to close the parent (opener)

    Vidur said that the opener can't be closed if you use a dialog until the
    dialog closes
    use window.open instead.....

    I too thought that when showModalDialog is used, the parent can't be closed.
    I'll need to use window.open.

    But is there still a workaround to achieve it using showModalDialog?






    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > hi
    >
    > I open a pop up window using window.showModalDialog. How can I close the
    > parent window after the pop up appears ?
    >
    >

    sramruttun Guest

  7. #6

    Default Re: closing parent after pop up appears

    ok Jerry
    But what's the main difference between showModelessDialog and
    showModalDialog ?
    Both seem to be modal.

    "Jerry III" <jerryiii@hotmail.com> wrote in message
    news:eeDXKdKXDHA.1940@TK2MSFTNGP10.phx.gbl...
    > No there isn't, you can't close a window from a modal dialog it owns since
    > the parent doesn't process user input until the modal dialog closes
    (that's
    > the difference between modal and modeless dialog). You should be able to
    use
    > showModelessDialog instead of window.open if you want to.
    >
    > Jerry
    >
    > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > news:eMto5JKXDHA.652@tk2msftngp13.phx.gbl...
    > > thanks everyone for your replies
    > > Daniel said:
    > > window.showModalDialog(...)
    > > window.close();
    > > well I had tried this but it does not work..
    > >
    > > Saravana is suggesting an article on how to close the POP UP WINDOW
    while
    > I
    > > want to close the parent (opener)
    > >
    > > Vidur said that the opener can't be closed if you use a dialog until the
    > > dialog closes
    > > use window.open instead.....
    > >
    > > I too thought that when showModalDialog is used, the parent can't be
    > closed.
    > > I'll need to use window.open.
    > >
    > > But is there still a workaround to achieve it using showModalDialog?
    > >
    > >
    > >
    > >
    > >
    > >
    > > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > > news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > > > hi
    > > >
    > > > I open a pop up window using window.showModalDialog. How can I close
    the
    > > > parent window after the pop up appears ?
    > > >
    > > >
    > >
    > >
    >
    >

    sramruttun Guest

  8. #7

    Default Re: closing parent after pop up appears

    Hi

    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodelessdialog.asp[/url]
    The dialog will close when opener closes.... use window.open ;-)

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:ubTIHnNXDHA.2256@TK2MSFTNGP10.phx.gbl...
    > ok Jerry
    > But what's the main difference between showModelessDialog and
    > showModalDialog ?
    > Both seem to be modal.
    >
    > "Jerry III" <jerryiii@hotmail.com> wrote in message
    > news:eeDXKdKXDHA.1940@TK2MSFTNGP10.phx.gbl...
    > > No there isn't, you can't close a window from a modal dialog it owns
    since
    > > the parent doesn't process user input until the modal dialog closes
    > (that's
    > > the difference between modal and modeless dialog). You should be able to
    > use
    > > showModelessDialog instead of window.open if you want to.
    > >
    > > Jerry
    > >
    > > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > > news:eMto5JKXDHA.652@tk2msftngp13.phx.gbl...
    > > > thanks everyone for your replies
    > > > Daniel said:
    > > > window.showModalDialog(...)
    > > > window.close();
    > > > well I had tried this but it does not work..
    > > >
    > > > Saravana is suggesting an article on how to close the POP UP WINDOW
    > while
    > > I
    > > > want to close the parent (opener)
    > > >
    > > > Vidur said that the opener can't be closed if you use a dialog until
    the
    > > > dialog closes
    > > > use window.open instead.....
    > > >
    > > > I too thought that when showModalDialog is used, the parent can't be
    > > closed.
    > > > I'll need to use window.open.
    > > >
    > > > But is there still a workaround to achieve it using showModalDialog?
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > > > news:eZ8kxcBXDHA.2204@TK2MSFTNGP12.phx.gbl...
    > > > > hi
    > > > >
    > > > > I open a pop up window using window.showModalDialog. How can I close
    > the
    > > > > parent window after the pop up appears ?
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Vidar Petursson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139