Hi Joel,
In my case the IFrames all originate from the same server, so the
security model should not be in the way. As said before, I installed a
focus listener on the IFrame (the component, not the document inside)
and that one gets fired, sinking onclick does not work in IE6. The
only missing link right now is to get the popup menu/submenus to hide
when I get an onfocus for the IFrame component. Any thoughts on how I
can achieve that ?
I'm having issues with the PopupMenus, as far as I know there is no
public hide() method available ?
David
On Mar 5, 12:14 am, "Joel Webber" <
j...@google.com> wrote:
> @David: I don't believe we can depend on being able to install event
> handlers in arbitrary iframes, because of the domain security model (need to
> confirm this, though). For your particular case, if you were to install
> handlers yourself, could you simply call PopupPanel.hide()? Or is another
> widget (e.g. MenuBar) that uses popups keeping you from doing this?
>
> @Fred: I seem to remember people using the transparent div trick (and also
> IE's recalcitrance in being 'smart' by letting clicks through transparent
> divs). I'd be a little wary about doing this for all popups though, because
> it sounds like it could be a speed issue (and unfortunately, IE is the only
> browser that doesn't implement event capture as well, making it doubly
> hard). Do you know of *any* way to capture events on IE other than the hack
> that GWT does (i.e. forwarding all events through a single dispatch()
> method)?
>
>
>
> On Mon, Mar 3, 2008 at 9:58 AM, Fred Sauer <
f...@allen-sauer.com> wrote:
> > Joel,
>
> > I needed full screen mouse event (and actually keyboard event) capture
> > when working on Hornet Blast (
> >
http://allen-sauer.com/com.allen_sauer.gwt.game.hornetblast.HornetBla...).
> > As I recall a 100% transparent DIV works in all browsers except IE6, in
> > which case you can try to capture events on the body element, or you can
> > make the div have 1% opacity (99% transparency) in the IE6 case. That does
> > effect the color of the page a bit, which might be okay when a popup is
> > being displayed. A single, shared, DIV for all menus and popups might work.
>
> > Fred
>
> > On Thu, Feb 28, 2008 at 9:29 AM, Joel Webber <
j...@google.com> wrote:
>
> > > I think Ray's intuition on this one is right. AFAIK, there is just no
> > > good way to do this in the general case, at least not using the 'event
> > > preview' semantics.
> > > The only alternative I've heard that sounds remotely feasible would be
> > > something more like the "GlassPanel" trick, where you cover the whole page
> > > in an invisible (or translucent) element that catches the events. It might
> > > be possible to change PopupPanel to do something like this. My biggest
> > > concern, though, would be that it might perform horribly for things like
> > > MenuBar -- if there were a full-page transparent div for every cascaded
> > > menu, things could get ugly.
>
> > > Has anyone ever experimented with this? Is it feasible across browsers
> > > (in particular, is it possible to make one *completely* transparent and
> > > still catch mouse events on all browsers)?
>
> > > joel.
>
> > > On Tue, Feb 26, 2008 at 11:13 PM, Ray Cromwell <
cromwell...@gmail.com>
> > > wrote:
>
> > > > There is a similar issue with plugins, Flash, Applets, Silverlight,
> > > > Quicktime, etc. On each browser, you can capture some events, but not
> > > > others. For example, on some browsers, you can trap the context menu and
> > > > prevent Flash from getting it, but on others you can't. On IE, Flash always
> > > > eats mouse click events, but not mouse down/mouse up. I suspect this
> > > > problem can't be solved without pumping, and each domain will need a
> > > > specific solution (embedded iframes, embedded Flash, embedded Quicktime/WMV,
> > > > embedded PDF, etc)
>
> > > > -Ray
>
> > > > On Tue, Feb 26, 2008 at 1:07 AM, stuckagain <
david.no...@gmail.com>
> > f...@allen-sauer.com- Hide quoted text -