[CLOSED] menu not automatically close if click the iframe

  1. #1

    [CLOSED] menu not automatically close if click the iframe

    Hi,

    Need a little help here..
    I have menu and selectbox in main page. In this main page also have iframe.
    If I click the menu, and then I click other thing in the main page, the menu will automatically close (hide). This behaviour is expected.
    But the problem is, when I click the menu, and then I click other thing inside the iframe, the menu remain open. This is also happen in selectbox, if I click the selectbox and then click other thing inside iframe, the selectbox also remain open.
    What should I do to make the menu / selectbox automatically close if I click something inside the iframe?

    Thanks
    Last edited by Daniil; Nov 14, 2011 at 4:35 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Iframe doesn't bubble its events on a parent page on a browser level. We can't solve it.

    There are two options:

    1. Do not use iframes.

    or

    2. "Bubble" an event manually. In you case, you can listen a Click event on an iframe's body element and close a Menu/SelectBox manually.

Similar Threads

  1. Replies: 0
    Last Post: Mar 19, 2012, 7:26 AM
  2. How to close Ext Window (with Iframe content)
    By shankar in forum 1.x Help
    Replies: 3
    Last Post: Jul 12, 2010, 11:48 PM
  3. Replies: 3
    Last Post: Dec 10, 2009, 10:51 AM
  4. Clear Window Content/iFrame on close
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Aug 05, 2009, 5:50 PM
  5. [CLOSED] Close desktopwindow from iframe
    By CSG in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 08, 2009, 7:17 AM

Posting Permissions