> Thanks very much for your help! Ive done some experimenting with what
> you sent, and the 'show:' method doesnt seem to be valid- when I
> uncomment that portion of the following script, the tabs interface
> breaks, but it works as it should if I leave it commented out:
>
> var $tabs = $('#bucket1 > ul').tabs({
> fx: { opacity: 'toggle' },
> //show: function(event, ui) { $tabs.attr('id', ui.index) };
> })
>
> .tabs('rotate', 2000);
There is a ; at the end of the line in your code. That causes a syntax
error. (There is no semicolon in the code I've posted.)
> *I assumed that in the show:function you meant 'event' where you had
> 'e'. Could you please double check this? Also, could you specify how
> to add the prefix to the tab index when it does add the id to the UL
> element?
It doesn't matter how you name the argument, as long as you use it
consistently in the function body. Naming the event argument "e" is
quite common (but no must, you can name it "event" or "ev" or
"foo"...).
Here's the code with prefix "selected-":
var $tabs = $('#bucket1 > ul').tabs({
fx: { opacity: 'toggle' },
show: function(e, ui) {
$tabs.attr('id', 'selected-' + ui.index);
}
})
.tabs('rotate', 5000);
--Klaus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---