Hi ALL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ushasri
    New Member
    • Dec 2006
    • 3

    Hi ALL

    Hi,

    I have a parent window on which I have a button we pops up a window.I need to get the values from that pop up into the parent window and close the pop up automatically.

    I have a link on the pop up window which brings all the values to the parent window.

    Can u help me out please........
  • b1randon
    Recognized Expert New Member
    • Dec 2006
    • 171

    #2
    Originally posted by ushasri
    Hi,

    I have a parent window on which I have a button we pops up a window.I need to get the values from that pop up into the parent window and close the pop up automatically.

    I have a link on the pop up window which brings all the values to the parent window.

    Can u help me out please........
    If you have a link which already does it, then are you just asking how to close the new window? Window.close() will do that. Be more clear about your question and maybe I can help.

    Comment

    • ushasri
      New Member
      • Dec 2006
      • 3

      #3
      Originally posted by b1randon
      If you have a link which already does it, then are you just asking how to close the new window? Window.close() will do that. Be more clear about your question and maybe I can help.

      Hi,

      I want to get the values from the pop up which has a link.When I click on this link I should get all the values from that pop up to the main window and the pop up should be closed.I think this will be clear

      Thanks in advance..

      Comment

      • Gargi K
        New Member
        • Nov 2006
        • 5

        #4
        Originally posted by ushasri
        Hi,

        I want to get the values from the pop up which has a link.When I click on this link I should get all the values from that pop up to the main window and the pop up should be closed.I think this will be clear

        Thanks in advance..
        Hi

        You can have a hidden control on your parent form, say htxtTextbox
        now add a javascript for the click of the link.

        In the script you can do the following:

        function xyz(pass parameters that you want to take from pop up window)
        {
        window.opener.d ocument.Form1.h txtTextbox.valu e ="parameters in the function" ;
        window.opener.d ocument.Form1.s ubmit();
        window.close();
        }

        Form1 is the name of the parent window
        Hope this helps

        Gargi

        Comment

        Working...