1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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 Well-Known Member

    Messages:
    399
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #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