cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Create a variable browser tab display name

Markus_Neini
12-Amethyst

Create a variable browser tab display name

Hi everyone,

 

I am currently working on TWX 9.3.4-b1190 and I wonder, if there is a way to change the Browser tab display name dynamically. Right now, you can not bind the Title property on a master mashup and the solution provided in the link below does not seem to work for newer TWW versions.

 

Solved: how to make make a variable title for a Master Ma... - PTC Community

 

Best regards 
Markus

ACCEPTED SOLUTION

Accepted Solutions

The error with previous functionality is now 'Uncaught ReferenceError: $ is not defined'.

 

I think you can only do it with a custom extension widget now, which executes

document.title = newTitle;

https://developer.mozilla.org/en-US/docs/Web/API/Document/title

With the replacement of "Non-Secure"-Expressions (MigratingNonSecureFunctions.html) the manipulation of the DOM (like changing title) is no longer possible. At least I did not find a way for now... The expressions are executed in some "sandbox"-environment having only a limited scope. So $ (from jquery) is not available anymore.

View solution in original post

1 REPLY 1

The error with previous functionality is now 'Uncaught ReferenceError: $ is not defined'.

 

I think you can only do it with a custom extension widget now, which executes

document.title = newTitle;

https://developer.mozilla.org/en-US/docs/Web/API/Document/title

With the replacement of "Non-Secure"-Expressions (MigratingNonSecureFunctions.html) the manipulation of the DOM (like changing title) is no longer possible. At least I did not find a way for now... The expressions are executed in some "sandbox"-environment having only a limited scope. So $ (from jquery) is not available anymore.

Announcements


Top Tags