Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Rome, Italy
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close popup window

    Hello to all!
    I've a page with a form, when i click on the "Submit" button, i send the data to an asp page and i open a popup window called "Attesa".
    When the asp page have received the form data, i have to close automatically the popup window...how can i do this?
    Thanks,

    Giuseppe

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in the BODY tag of the asp page put in onLoad="self.close()"

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Rome, Italy
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the asp page must remain opened, is the other page, opened as popup window, that i have to close...

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Originally posted by giuseppe74
    is the other page, opened as popup window, that i have to close...
    gui..
    just a try® putting this in the BODY tag of the "Attessa" page ...
    onLoad="self.close()"
    The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
    ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

    CommemorateWTC.com --Please lend your support

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, i misunderstood you.

    Try something like

    ASP: onLoad="Attesa.close()";

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    Rome, Italy
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for justame: if i put the self.close on the popup page it will close the page, but i want to close the popup from another page

    tamienne i've tried but it doesn't work

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What error are you getting?

    Can you post a url or code so we can look?

  • #8
    New Coder
    Join Date
    Jun 2002
    Location
    Rome, Italy
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    none errors, just the popup don't close!

    this is an example i made on two html pages:

    page one (prima.htm):

    <a href="seconda.htm" onClick="window.open('attesa.htm','attesa','width=300,height=300');">Clicca</a>

    page two (seconda.htm)

    ...i don't know what write to close the attesa.htm

    page attesa.htm

    ..just remain opened till seconda.htm close it...

    can you help me?

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    on seconda.htm call the window.open again with the same name. This gives you the window handle so you can close the window.

    <script>
    function closeIt(){
    newWin=window.open('','attesa','width=300,height=300');
    newWin.close();

    }
    </script>
    </HEAD>
    <BODY onLoad="closeIt()">

  • #10
    New Coder
    Join Date
    Jun 2002
    Location
    Rome, Italy
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It works good!!!!!!
    Really really thanks!


  •  

    Posting Permissions

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