Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [browser] Question regarding WindowEvent boolean fields
[browser] Question regarding WindowEvent boolean fields [message #449682] Thu, 27 January 2005 17:09 Go to next message
Eclipse UserFriend
Hi,

again this post deals with blocking popups from the IE. Now, the flags
inside WindowEvent (menuBar, statusBar, ...)
give a good hint, wether the webpage that is about to be shown is a
popup or not. In the Browser example where
popups are blocked a webpage is only considered a popup, when all fields
are boolean FALSE.

I wonder why this is necessary. Does'nt a single FALSE flag (e.g.
menuBar = false) tell enough, that the
webpage is a popup? Or at least, that the webpage was opened in a result
of JavaScript (window.open()).

If that is the case, popup blocking would be more efficient if the
fields are compared with OR and not AND.

I know that this solution would be kind of restrictive, since some pages
might use window.open() as a way
to display their websites. I watched how Firefox is blocking popups: Any
JavaScript code that is triggered
by the events "onLoad" or "onClose" are ignored, whereas an open()
Method in a link or "onClick" is allowed.

But my question is, who sets these fields? Is it set by the parameters
of the "open()" JavaScript call, or
could it also be set by the browser itself (e.g. the user has chosen to
not display the status bar on any
webpage). If that is the case, it would not make sense to compare the
fields with OR, since then the user
would not be able to use the Browser at all.

Thanks for helping,
Ben
Re: [browser] Question regarding WindowEvent boolean fields [message #449759 is a reply to message #449682] Fri, 28 January 2005 16:28 Go to previous message
Eclipse UserFriend
> Is it set by the parameters of the "open()" JavaScript call, or
Yes.

Chris
Previous Topic:Browser widget question
Next Topic:How to embed Mozilla browser into a View?
Goto Forum:
  


Current Time: Thu Jul 03 18:32:14 EDT 2025

Powered by FUDForum. Page generated in 0.24840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top