jquery tabs with cookie send fragment to url onload
Hi there, hope someone can give me some help with that prob.
How can I add a fragment to url, if the tabset is loading (..onload)?
How to manage an onload function?
How can I get the the id of a clicked tab?
I have this code
<code>
// Process custom tabs.
$('.drupal-tabs:not(.tabs-processed)', context)
.addClass('tabs-processed')
.each(function () {
if ($(this).is('.tabs-navigation')) {
Drupal.tabsNavigation(this);
}
})
.find('> ul')
.tabs({
cookie: { expires: 0},
selectedClass: 'active',
fx: fx,
select: function(event, ui){
// var url = jQuery.url.segment(0) + '/' + $('.active').attr
('nid'); // get the nid of the active elem. - but not of the current
// window.location = url; // change url on click - works!
return true;
}
})
</code>