Skip to main content



      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 04:00 Go to next message
Eclipse UserFriend
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 10:23 Go to previous messageGo to next message
Eclipse UserFriend
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 11:35 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 19:38:48 EDT 2025

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

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

Back to the top