Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Autofocus of tabs through javascript

  • 3 ответа
  • 1 имеет эту проблему
  • 14 просмотров
  • Последний ответ от philipp

more options

Hi,

We have a critical concern in one of the application we are developing. The functionality works perfect on Google Chrome but it doesn’t work on Firefox (or atleast we are not able to make it work).

Below is our scenario:

1. Application is developed in ASP.NET 2. There are 4 menu items (A,B, C and D) on the application. 3. Each menu items has a parameter which displays different set of information on the page. 4. When we click on say A, it take parameter as 1 and opens a tab. When I click on B, it takes parameter as 1 and open a new tab with other set of information, and so on. 5. Now, then I am on B and already have a A tab open, if I click on A Menu on B, it should automatically redirect to A and the focus should shift on A. 6. Current, we are able to reload the A tab with new parameter, but the focus doesn’t shift on that A tab.

Is there anything we are missing? Request you to please help us here.

Jai

Hi, We have a critical concern in one of the application we are developing. The functionality works perfect on Google Chrome but it doesn’t work on Firefox (or atleast we are not able to make it work). Below is our scenario: 1. Application is developed in ASP.NET 2. There are 4 menu items (A,B, C and D) on the application. 3. Each menu items has a parameter which displays different set of information on the page. 4. When we click on say A, it take parameter as 1 and opens a tab. When I click on B, it takes parameter as 1 and open a new tab with other set of information, and so on. 5. Now, then I am on B and already have a A tab open, if I click on A Menu on B, it should automatically redirect to A and the focus should shift on A. 6. Current, we are able to reload the A tab with new parameter, but the focus doesn’t shift on that A tab. Is there anything we are missing? Request you to please help us here. Jai

Все ответы (3)

more options

hello Jai, for security reasons websites cannot change focus between windows/tabs in firefox by default. you could try to work around that if you set the dom.disable_window_flip preference in about:config to false, but this would have to be done manually by every user of the application...

more options

Hello Philip, I have set the dom.disable_window_flip preference in about:config to false, but the focus doesn’t shift on another tab.

Please help us here...

more options

we probably cannot help you with issues around development in this venue - you might get better feedback when you ask that question on a site like https://stackoverflow.com ...