I current have a tab setup with two static tabs and i also have it set
up so that when you click a link on a certain page that it creates a
new tab and selects it.
$('.view-proposal').livequery('click', function(){
var newLabel = this.title
$("#project").tabs("add", this.href, newLabel);
//new tab will be at end, get index
var newIndex = $("#project").tabs("length") - 1;
//select the new tab
$("#project").tabs("select", newIndex);
return false;
});
What i need to do tho is replace the third dynamic tab whenever the
user then opens a new link from the other pages. any idea on how to do
this? there should only be 3 tabs total at all times and sometimes
just 2. i was thinking about something that would just check to see if
the index was more than [2] and remove the third tab if it exists.
thanks for any help.
-mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---