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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Create a variable browser tab display name

Markus_Neini
8-Gravel

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

1 ACCEPTED SOLUTION

Accepted Solutions
nmutter
14-Alexandrite
(To:Markus_Neini)

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
nmutter
14-Alexandrite
(To:Markus_Neini)

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.

Top Tags