how to change browser window title dynamically [message #661535] |
Fri, 25 March 2011 07:54 |
Eclipse User |
|
|
|
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 #661729 is a reply to message #661648] |
Sat, 26 March 2011 19:40 |
Ivan Furnadjiev 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 |
Eclipse User |
|
|
|
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
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.04102 seconds