Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser: LocationListener.changing() and the BeforeNavigate event
SWT Browser: LocationListener.changing() and the BeforeNavigate event [message #459847] Thu, 18 August 2005 08:00 Go to next message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 17
Registered: July 2009
Junior Member
Hi!

I'm using the Browser widget in a dialog to display a JSP that lets the
user select something. To close the dialog when the user has selected an
item from the JSP, I use a LocationListener that waits for a special URL
to cancel the navigation process and close the dialog.

On some systems this works fine, on others, nothing happens. I found
out, that some versions of IE trigger the BeforeNavigate2 event before
navigating to an URL, and some trigger the BeforeNavigate event instead.
The Browser widget listens only to the BeforeNavigate2 event.

Has anybody similar experience or may be a workaround for this?

BR
Florian
Re: SWT Browser: LocationListener.changing() and the BeforeNavigate event [message #459856 is a reply to message #459847] Thu, 18 August 2005 14:23 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Florian,

The Browser assumes an IE version of >= 5.5. I'm guessing that the systems
that fire BeforeNavigate for you are older than this?

Grant

"Florian Thienel" <flori@docufy.de> wrote in message
news:de1f79$efi$1@news.eclipse.org...
> Hi!
>
> I'm using the Browser widget in a dialog to display a JSP that lets the
> user select something. To close the dialog when the user has selected an
> item from the JSP, I use a LocationListener that waits for a special URL
> to cancel the navigation process and close the dialog.
>
> On some systems this works fine, on others, nothing happens. I found
> out, that some versions of IE trigger the BeforeNavigate2 event before
> navigating to an URL, and some trigger the BeforeNavigate event instead.
> The Browser widget listens only to the BeforeNavigate2 event.
>
> Has anybody similar experience or may be a workaround for this?
>
> BR
> Florian
Re: SWT Browser: LocationListener.changing() and the BeforeNavigate event [message #459860 is a reply to message #459856] Thu, 18 August 2005 15:35 Go to previous message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 17
Registered: July 2009
Junior Member
Hi Grant!

No, all IE 6. I tested the following versions:

don' work:
6.0.2900.2180.xpsp_sp2_gdr.050301-1519
6.0.2800.1106.xpsp1.020828-1920

works:
6.0.2800.1106.xpsp2.040919-1003

What really iritates me is the fact that the version that works is
between the two versions that don't.

Florian

Grant Gayed wrote:
> Hi Florian,
>
> The Browser assumes an IE version of >= 5.5. I'm guessing that the systems
> that fire BeforeNavigate for you are older than this?
>
> Grant
>
> "Florian Thienel" <flori@docufy.de> wrote in message
> news:de1f79$efi$1@news.eclipse.org...
>
>>Hi!
>>
>>I'm using the Browser widget in a dialog to display a JSP that lets the
>>user select something. To close the dialog when the user has selected an
>>item from the JSP, I use a LocationListener that waits for a special URL
>> to cancel the navigation process and close the dialog.
>>
>>On some systems this works fine, on others, nothing happens. I found
>>out, that some versions of IE trigger the BeforeNavigate2 event before
>>navigating to an URL, and some trigger the BeforeNavigate event instead.
>>The Browser widget listens only to the BeforeNavigate2 event.
>>
>>Has anybody similar experience or may be a workaround for this?
>>
>>BR
>>Florian
>
>
>
Previous Topic:Priority of worker threads.
Next Topic:JFace: Lazy TableTree ?
Goto Forum:
  


Current Time: Fri Apr 19 23:07:56 GMT 2024

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

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

Back to the top