• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dynamically change browser title in Flex application

New Here ,
May 26, 2012 May 26, 2012

Copy link to clipboard

Copied

In order to make my Flex application more accesible to those using screen reader software, I need to change the browser title bar text as the user selects different tabs. I thought I could use FlexGlobals.topLevelApplication.pageTitle ="xxx" to to this or define a public function in the application MXML file and use topLevelApplication to call it.  However, this doesn't seem to work, the title bar is not changed. I am wondering if this requires flex 4.6 (I am currently using 4.5).  Any thoughts on how I might accomplish this would be appreciated.

TOPICS
ActionScript

Views

3.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , May 26, 2012 May 26, 2012

Hi,

Use BrowserManager to change to browser title and header text.

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7cbb.html

Votes

Translate

Translate
Contributor ,
May 26, 2012 May 26, 2012

Copy link to clipboard

Copied

Hi,

Use BrowserManager to change to browser title and header text.

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7cbb.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2012 May 26, 2012

Copy link to clipboard

Copied

LATEST

Thanks! I’ll give this a try. I have also gotten some results from using the following code:

Public static function updateBrowserTitleBar(title:String):void

{

Var titleStr:String = “document.title=’” + title + “’”;

ExternalInterface.call(“eval(‘” + titleStr + “’)”);

}

But BrowserManager might be a much cleaner way of handling this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines