Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » how to change browser window title dynamically
how to change browser window title dynamically [message #661535] Fri, 25 March 2011 07:54 Go to next message
Eclipse UserFriend
Originally posted by: admin.kabe-farben.ch

Hi

we do set the browserwindow title with getTitle() in our own branding-class
(dereived from AbstractBranding).
who do we change the browserwindow title dynamically, i.e when the language
changes?

Thanks
Andrej
Re: how to change browser window title dynamically [message #661648 is a reply to message #661535] Fri, 25 March 2011 17:01 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Andreij,

though I agree with you that there are valid use cases to change the
browser window title dynamically, it currently can only be set at
startup in the branding.
Would you mind to file an enhancement request?

- Rüdiger

On 25.03.2011 08:54, Andrej Dimic wrote:
> Hi
>
> we do set the browserwindow title with getTitle() in our own branding-class
> (dereived from AbstractBranding).
> who do we change the browserwindow title dynamically, i.e when the language
> changes?
>
> Thanks
> Andrej
>
Re: how to change browser window title dynamically [message #661729 is a reply to message #661648] Sat, 26 March 2011 19:40 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrej,
as Rüdiger states, there is no API to do this, but it's possible to
change browser window title by executing a custom javascript. *Please
note that this method uses internal RAP class that is subject to change
without notice!* Here is the snippet:
---
JSExecutor.executeJS( "document.title = \"My New Title\"" );
---
HTH,
Ivan

On 3/25/2011 7:01 PM, Rüdiger Herrmann wrote:
> Andreij,
>
> though I agree with you that there are valid use cases to change the
> browser window title dynamically, it currently can only be set at
> startup in the branding.
> Would you mind to file an enhancement request?
>
> - Rüdiger
>
> On 25.03.2011 08:54, Andrej Dimic wrote:
>> Hi
>>
>> we do set the browserwindow title with getTitle() in our own
>> branding-class
>> (dereived from AbstractBranding).
>> who do we change the browserwindow title dynamically, i.e when the
>> language
>> changes?
>>
>> Thanks
>> Andrej
>>
Antw: Re: how to change browser window title dynamically [message #662848 is a reply to message #661729] Fri, 01 April 2011 08:25 Go to previous message
Eclipse UserFriend
Originally posted by: admin.kabe-farben.ch

Hi Ivan

Thanks, it works.

Andrej


>>> Ivan Furnadjiev<ivan@eclipsesource.com> schrieb am 26.03.2011 um 20:40
in
Nachricht <imlf36$gi8$1@news.eclipse.org>:
> Hi Andrej,
> as Rüdiger states, there is no API to do this, but it's possible to
> change browser window title by executing a custom javascript. *Please
> note that this method uses internal RAP class that is subject to change
> without notice!* Here is the snippet:
> ---
> JSExecutor.executeJS( "document.title = \"My New Title\"" );
> ---
> HTH,
> Ivan
>
> On 3/25/2011 7:01 PM, Rüdiger Herrmann wrote:
>> Andreij,
>>
>> though I agree with you that there are valid use cases to change the
>> browser window title dynamically, it currently can only be set at
>> startup in the branding.
>> Would you mind to file an enhancement request?
>>
>> - Rüdiger
>>
>> On 25.03.2011 08:54, Andrej Dimic wrote:
>>> Hi
>>>
>>> we do set the browserwindow title with getTitle() in our own
>>> branding-class
>>> (dereived from AbstractBranding).
>>> who do we change the browserwindow title dynamically, i.e when the
>>> language
>>> changes?
>>>
>>> Thanks
>>> Andrej
>>>
Previous Topic:Language of Messages, Warnings, etc. ?
Next Topic:Ctrl+N in RAP 1.4M6
Goto Forum:
  


Current Time: Mon Sep 23 06:28:05 GMT 2024

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

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

Back to the top