jQuery Tabs - Following External Links
Posted
by Ricky
on Stack Overflow
See other posts from Stack Overflow
or by Ricky
Published on 2009-06-30T23:05:45Z
Indexed on
2010/05/30
4:42 UTC
Read the original article
Hit count: 371
jquery-ui
I have jQuery Tabs setup, but am trying to get a Tab to follow an external link.
I have tried to use the code from jQuery, but the URL still loads via Ajax instead of redirecting the browser to the url:
http://jqueryui.com/demos/tabs/#...follow_a_tab.27s_URL_instead_of_loading_its_content_via_ajax
Current code:
$(function() {
$('#rotate > ul').tabs({
select: function(event, ui) {
var url = $.data(ui.tab, 'load.tabs');
if( url ) {
location.href = url;
return false;
}
return true;
}
});
});
© Stack Overflow or respective owner