JqueryUI Tab Linking from Another Page

Posted by pschorr on Stack Overflow See other posts from Stack Overflow or by pschorr
Published on 2009-09-17T06:37:42Z Indexed on 2010/04/22 17:43 UTC
Read the original article Hit count: 221

Filed under:
|
|

I'm having some issues with jqueryui tabs and linking to certain tabs on another page.

Basically, each page has tabs, and all are navigational via drop down at the top, with each 'tab' being available in the drop down. Currently I'm able to text-link, but only within the page I'm on, and I'm just lost on the getting it to work correctly from page to page.

Here's what I currently got working with internal text link.

$(function() {
    $("#tabs").tabs(
                    {fx: { opacity: 'toggle' },
                    selected: 0}
                    );

    var $tabs = $('#tabs').tabs(); // first tab selected

    $('a.nutrlink').click(function() { // bind click event to link
    $tabs.tabs('select', 1); // switch to third tab
    return false;
    });
});

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about jQuery