:(  i cant make it work. If I have a tab with a div fragment, then i
click in another tab and i change the starter tab's url, should work
uh?

some code

$(document).ready(function() {
                $('#container').tabs(3); //starting with third tab
                $('#container').tabs({
                click: function() {
                        
$('#container').tabs().tabsHref(3,'/jsp/BuscarTareas.do'); //
launching an url when click in other tab
                }
                });
});

        <div id="container">

            <ul>
                <li><a href="/Normativa/jsp/
VerBuscador.do"><span>Buscador</span></a></li>
                <li><a href="/Normativa/jsp/
VerBuscador.do"><span>Crear</span></a></li>
                <li><a href="#fragment"><span>Evaluar</span></a></
li>
                <li><a href="/Normativa/jsp/
BuscarTareas.do"><span>Desarrollo</span></a></li>
                <li><a href="/Normativa/jsp/
BuscarTareas.do"><span>Evaluar2</span></a></li>
                <li><a href="/Normativa/jsp/
BuscarTareas.do"><span>Firmar</span></a></li>
                <li><a href="/Normativa/jsp/
BuscarTareas.do"><span>Publicar</span></a></li>
                <li><a href="/Normativa/jsp/
BuscarTareas.do"><span>Seguir</span></a></li>
            </ul>
            <div id="fragment">
                Lorem ipsum dolor sit amet.
            </div>
        </div>

Whats wrong with that :S
Thanks!

On 16 ene, 14:34, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On Jan 16, 4:11 pm, Diego <[EMAIL PROTECTED]> wrote:
>
> > How you change the url of a tab 'on the fly' ?
> > for example, clicking the second tab change the url of the first tab?
>
> > thanks
>
> There is a tabsHref method:
>
> var $tabs = $('#example').tabs();
>
> // change href of first tab
> $tabs.tabsHref(1, 'changed.html');
>
> There is also a documentation for UI Tabs:http://docs.jquery.com/UI/Tabs
>
> --Klaus

Reply via email to