Parent to Child

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amandab116
    New Member
    • Apr 2009
    • 13

    Parent to Child

    I'm wondering how I can pass the values of a combobox in my parent page to a textbox on a child popup page.

    Here is the code that I have on the parent page right now to find the value of the combobox.

    Code:
    function openRadWindow(url, windowName)
    {
        var el = $find('<%=RadComboBoxResources.ClientID %>');
        var txt = el.get_text();
    
        var oWnd = radopen(url + "?name=" + txt, windowName);
        oWnd.center();
        }
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    Your source value is in parent page and the targeted area is in Child Pop Up Page.
    If you are in Child Pop Up Page then access the parent window document using "opener.documen t" if you are in Parent Window then access the Child Window using the "window_referen ce.document" what you saved during "window.ope n".
    Did you save it or not ?

    Comment

    • amandab116
      New Member
      • Apr 2009
      • 13

      #3
      Yes, I did save it. I managed to use the document.getEle mentById for this...
      My code was this:

      Code:
       var el2 =document.getElementById('<%=RadTextBoxAdd.ClientID %>');
      Thank you for that suggestion, it really helped!

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        So it's working now ;)

        Ahh! You welcome!

        Comment

        • amandab116
          New Member
          • Apr 2009
          • 13

          #5
          Yes, thank you very much for your help! :)

          Comment

          Working...