Starting from here:
http://docs.jquery.com/UI/Tabs#...open_a_tab_in_a_new_window_instead.3F
we can try this:
$(document).ready(function() {
var $tabs = $('#container > ul').tabs({
select: function(e, ui) {
if ( $('a', $tabs).index(ui.tab) == 3 ) {
location.href = $.data(ui.tab, 'load.tabs');
return false;
}
}
});
});
Note that such a tab behaves in a totally unexpected manner (read:
you're about to create a usability problem).
--Klaus
On 22 Okt., 20:00, skriptek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I hope someone could help me with my problem. This is my code:
>
> <div id="container">
> <ul>
> <li><a href="/tab1/" title="tab 1">tab 1</a></li>
> <li><a href="/tab2/" title="tab 2">tab 2</a></li>
> <li><a href="/tab3/" title="tab 3">tab 3</a></li>
> <li><a href="/not-a-tab-link/">tab 4</a></li>
> </ul>
> </div>
> <script type="text/javascript">
> $(document).ready(function(){
> $("#container > ul").tabs();
> });
> </script>
>
> This works as originally intended, but I would like the 4th link to
> open as web page, not to be loaded in tab container. So the 4th tab
> should be a normal link.
>
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---