PDA

View Full Version : No workaround for closing opened menu lists from other frames



maya
21 May 2007, 3:06 AM
Hi,

When menu lists and comboboxes are opened on other frames, they are not closed when clicking on the frame's area.

Therefore, I can close those lists using Ext in the parent window (Actually, I can close only menus with lists, not comboboxes, because the menuMgr can't locate comboboxes).

BUT: if I do this, I can't select options that are opened on the frame, because when I click on them the list is closed (by my script!)

So I have a trade-off: either to have a non-closed menu list or a non-choosable ones!

Is there a solution?

Thanks

jsakalos
21 May 2007, 4:07 AM
I guess it's been already discussed; Jack gave the answer.

Generally: You need to implement an onclick handler in the iframe document that would close menus on the main page.

maya
27 May 2007, 12:58 AM
This is exactly the problem: I can implement the onclickHandler that closes the list - and it means that I can't select options from the list when it is opened on an iframe - because when I click on it it is closed (by my implemented function!).

Animal
27 May 2007, 1:04 AM
Why can't you select options from te list when it is opened on a iframe? You mean the list is overan iframe? Then the iframe's click handler won't recieve the click event.

Use a {single:true} onclick handler on the iframe's document, and fire the "click" event on the parent's document.