Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Link with target="_blank" not working with MOZILLA
Link with target="_blank" not working with MOZILLA [message #521794] Thu, 18 March 2010 18:22
Markward Schubert is currently offline Markward SchubertFriend
Messages: 15
Registered: July 2009
Junior Member
Hi everyone!

I recently changed our RCP-application to use Mozilla with a specified XULRunner for all the Browsers in the application.

One effect we see now is, that links from a page, which have the
<a [...]  target="_blank />
attribute set, will not open unless I implement the OpenWindowListener.

Can you please confirm that the observation is true, that with Mozilla there is no automatic creation of a new browser window for such links like there is in IE for example?

Of course I found the examples of how to use OpenWindowListener in the faq like http:// dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/s rc/org/eclipse/swt/snippets/Snippet270.java?view=co, so how to use them is not a problem.

I was just wondering if I misseds some flag to be set, that Mozilla will open them automatically in a separate Mozilla-window too.

Thanks for any replies!
Re: Link with target="_blank" not working with MOZILLA [message #521809 is a reply to message #521794] Thu, 18 March 2010 13:58 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Yes, IE is the only native browser type that opens these windows for free.
In general, OpenWindowListener should be implemented if you want to handle
cases like target="_blank". The "event.required" in Snippet270 can be used
to tell whether a native browser will open a window like this for free or
not.

Grant


"Markward Schubert" <markward.schubert@gmail.com> wrote in message
news:hntr0d$2mn$1@build.eclipse.org...
> Hi everyone!
>
> I recently changed our RCP-application to use Mozilla with a specified
XULRunner for all the Browsers in the application.
>
> One effect we see now is, that links from a page, which have the <a [...]
target="_blank /> attribute set, will not open unless I implement the
OpenWindowListener.
>
> Can you please confirm that the observation is true, that with Mozilla
there is no automatic creation of a new browser window for such links like
there is in IE for example?
>
> Of course I found the examples of how to use OpenWindowListener in the faq
like
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet270.java?view=co,
so how to use them is not a problem.
>
> I was just wondering if I misseds some flag to be set, that Mozilla will
open them automatically in a separate Mozilla-window too.
>
> Thanks for any replies!
Previous Topic:Rendering HTML Table in Eclipse FormText Control
Next Topic:Windows Transparent
Goto Forum:
  


Current Time: Mon Dec 16 03:02:54 GMT 2019

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

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

Back to the top