Parent-child relation on window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradheepayyanar
    New Member
    • Jun 2006
    • 12

    Parent-child relation on window

    Yo Yo

    i have 2 text field and a buttons which is placed close to the text field.
    my requirement is that, on clickin a button, a new window opens and i am making a selection in the child window which is getting reflected in the 1st text field. i need to load in some data in the 2nd text filed also.
    howz it possible. can the geeks help me out with a solution....


    Regards
    PraDz
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi there,

    well.. why not use cookies to store and retrieve the value in the second text field later on? tot abt it? good luck my fren.. :)

    Comment

    • vikky
      New Member
      • Sep 2006
      • 1

      #3
      <script language="Javas cript">
      function SendValue()
      {

      window.opener.d ocument.forms["Form1"].elements["txtFieldID "].value = "<%= variable %>";
      window.close();

      }


      </script>

      This will help you. by using Window.opener you can access parent elements.

      Comment

      Working...