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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Closing multiple popup windows

    Hi,

    I am having an html page which contains a list of entries with a checkbox for each entry. On clicking an entry, a new popup will open with the profile details of that entry. In the html page, multiple entries can be selected using the checkboxes and deleted. However, when if I already have a few popup windows open, and I delete a few entries in the html page and delete them, the associated pop windows won't close. Can someone tell me how I can achieve this ?

    Thanks.

  • #2
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This one is pretty vague but I will take a run at it.

    I think what you want to happen is when you click open from one page you also want to close it from that same page. This is possible using javascript.

    Code:
    //opening function
    var o = window.open(some_url);
    
    //closing function
    o.close();
    Note: I do not test code. I just write it off the top of my head. There might be bugs in it! But if any thing I gave you the overall theory of what you need to accomplish. Also there are plenty of other ways to accomplish this same thing. I just gave one example of it. Other ways might be faster and more efficient.


  •  

    Posting Permissions

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