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
    Regular Coder
    Join Date
    Sep 2005
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow pass value from parent to popup

    hi ,
    I have a dropdownlist and buttons as such Add,Edit and Delete in a page, when i click on the button it opens a popup window.
    i case of Add button clicked i dont need any value from dropdown but when edit or delete button is passed i need to pass the selected value of dropdown list from the parent to popup form. and even in popup window i need which button has been clicked to call the corresponding functions.

    How do i do it ?
    help me out in solving this.

    thanks

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use the opener keyword...

    Inside the pop-up's code:
    Code:
    var listValue = opener.document.getElementById('myDropDownList').value;
    See this tutorial on using this...
    If you want answers, write a smart question.

    Yes, someone probably does know how...

    Oh, and if you want to learn, STFW!


  •  

    Posting Permissions

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