Hi Seth,

Use this piece of js to link a specific tab.



var gotoHashTab = function (customHash) {
  "use strict";
        var hash = customHash || location.hash;
        var hashPieces = hash.split('?'),
            activeTab = $('[href=' + hashPieces[0] + ']');
        activeTab && activeTab.tab('show');
    };

    // onready go to the tab requested in the page hash
    gotoHashTab();

    // when the nav item is selected update the page hash
    $('.nav a').on('shown', function (e) {
      "use strict";
        window.location.hash = e.target.hash;
    });

    // when a link within a tab is clicked, go to the tab requested
    $('.tab-pane a').click(function (event) {
      "use strict";
        if (event.target.hash) {
            gotoHashTab(event.target.hash);
        }
});


2013/7/16 Seth Kwakwa <[email protected]>

>
> You would to use js as said earlier . Grab the url and get  the  tabname
> form the url.
>
> use js then to set the selected tab
>
> as below
>    $('#yourTabName a[href="#TheSomeTab"]').tab('show');
>
>
>
> On Monday, July 15, 2013 4:34:36 PM UTC, Roger Alsing wrote:
>>
>> Hi.
>>
>> Is it possible to browse to a specific tab in a tabbed bootstrap UI?
>>
>> clicking the tab headers set the url to e.g. "mysite/#/SomeTab"
>>
>> If I browse directly to that url, can I make that tab activated somehow?
>> or do I have to resort to javascript?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "twitter-bootstrap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to