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 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Pass the Checked Items from Pop Up to Parent window

    When pop-up window is clicked, the user can check the the checkboxes. The values of the selected items will be passed through the parent window. And pop-up window closes instantly. Example is the address book of Yahoo site checking the addresses and automatically goes to the parent window.

  • #2
    New Coder
    Join Date
    Jan 2003
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    heya carrera

    looks like we have same problem:
    will check the address book of Yahoo site to see what is look like

    maxx

  • #3
    New Coder
    Join Date
    Jan 2003
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    heya

    if you read my problem, than you see that I had similar problem like you. Here is my solution that work fine for me, and should be also fine for you.
    ... for more info read my posts

    maxx

    -----------------------------------------
    <script language="JavaScript">
    function getValues(f)
    {
    var el,e=0,i,cnt, newItem='';
    f=document.frmChk;
    while(el=f.elements[e++])
    {
    if(el.type=='checkbox' || el.type=='radio')
    {
    if(el.checked)
    {
    cnt=[el.value];
    var i = 0;
    while(el=cnt[i++])
    newItem = newItem + el +';';
    }
    }
    }
    window.opener.document.VNOS.MO.value = newItem;
    window.close();
    }
    </script>


  •  

    Posting Permissions

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