Focusing child window as long as its open

Discussion in 'JavaScript' started by unnikrishnanes, Jul 18, 2007.

  1. #1
    Hi

    I have a window in which I have a text field followed by a button . when I click on that it will open another window(a child window or so...). and he type some value in the child window and when it close the value enterd int the child window should display in the textbox in the parent window.

    Also , The user should not be able to do anything on parent window as long as child window is open. If one wants to go to parent window , he should close the child window or click on the button in child window... and when close the focus should go to parent window.

    Any idea of how to do this.. I am working on Ruby on rails.

    Please help....
     
    unnikrishnanes, Jul 18, 2007 IP
  2. DavidAusman

    DavidAusman Peon

    Messages:
    399
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do you mean user can't fill out forms as long as the child window still open? If so, you can disable those elements using obj.disabled = true; And when they close the child window, set it to obj.disabled = false;
     
    DavidAusman, Jul 19, 2007 IP