Discussões » Desenvolvimento

how to refresh fixed tab?

§
Publicado: 28/08/2014

how to refresh fixed tab?

i want set autorefresh for second tab on tabbar, i dnt want match page via url, this make many problems. i have fixed tab and i want refresh this tab in some interval

§
Publicado: 28/08/2014

Hi,

try
location.reload();

Regards
Reek

§
Publicado: 29/08/2014

fuck i know how to reload tab, i want refresh one tab select it via number, not url match

§
Publicado: 29/08/2014

would like to find a cross-browser solution

woxxomMod
§
Publicado: 29/08/2014
Editado: 29/08/2014

tab control isn't a part of any cross-browser specification, which is only natural since implementation of tabs is 100% application specific.

In such cases the only way is to check different browser methods of tabs control and use whichever tests positive:

if (chrome && chrome.tabs) { refreshtab_chrome() }

tabBrowser = ....
if (tabBrowser) { refreshtab_mozilla() }

.....

Publicar resposta

Faça o login para publicar uma resposta.