Skip to main content

Search and Top Navigation

#7724 closed bug (notabug)

Opened September 16, 2011 05:17PM UTC

Closed September 16, 2011 05:29PM UTC

follow a tab's URL

Reported by: spindlegoose Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

I have two pages.

Folder1 => Page1.aspx

Folder2 => Page2.aspx

When I use the go "straight to url" technique it renders the first tab as it should on initial load. When I click on the second tab it doesn't render the page properly and sets the tab index back to 1 in IE 9 and fire fox 6.

$(function () {

var tab_cookie_id = parseInt($.cookie("tab_cookie_1")) || 0;

// Tabs

$('#tabs').tabs({

selected: tab_cookie_id,

select: function (event, ui) {

var url = $.data(ui.tab, "load.tabs");

if (url) {

$.cookie("tab_cookie_1", ui.index);

location.href = url;

return false;

}

return false;

}

});

});

<div id="tabs">

<ul>

<li><a href="#local" >Page 1</a></li>

<li><a href="~/Folder2/Page2.apx" >Page 2</a></li>

</ul>

<div id="local">

Page 1 Contents

</div>

</div>

Attachments (0)
Change History (1)

Changed September 16, 2011 05:29PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Please use the forum for help.