How to detect refresh event in Browser [message #466555] |
Wed, 11 January 2006 10:21  |
Eclipse User |
|
|
|
Hi,
We are using the Browser widget to present some information which is
actually stoed in our database. The documents are prepared at runtime and
stored into some temporary files in the temp folder. The browser widget
shows these temporary files.
We've also implemented a locationListener which detects hyperlink clicks to
prepare the next document.
As the user clicks refresh (or F5), he expects to see the actual values from
the database. But our problem is that, we can not detect the refresh event
in the browser. Do you have any idea how to do it?
BTW, we have also regsitered a URLStreamHandlerService in the BundleContext
(OSGI URL_HANDLER_PROTOCOL). This protocol is used to address items in our
database. We are currently using our database as our update site. But the
browser seems to ignore this protocol. Is there way to render documents in
browser using this protocol (e.g: mtb://files/item55.html) ?
Thanks in advance,
Yetkin
|
|
|
|
|
|
|
Re: How to detect refresh event in Browser [message #466679 is a reply to message #466666] |
Fri, 13 January 2006 03:22  |
Eclipse User |
|
|
|
Hi Sunil,
You are right. The meta tags are for the browser, not server. But it still
doesn't help for my case:
I create the file c:\temp\file1.html and set it as url to the browser. If
you refresh the browser (no matter what meta tags), it will grab and render
the file C:\temp\file.html again. My question was, if I can get an event
from browser during (before or after) this refresh event occurs. What I need
is quiet similar to the LocationListener interface.
Y.
"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
news:dq686q$rmj$1@utils.eclipse.org...
> Yetkin Ozkucur <yetkin.oezkucur@asg.com> wrote:
>> This won't work, becuase I am not using a web server here (no server
>> side page). I am only using the file protocol
>> My code is something like that:
>>
> I thought that meta-tags would be used by the browser to control caching.
> Not by the server.
>
> --
> Sunil
>
|
|
|
Powered by
FUDForum. Page generated in 0.09113 seconds