I have one script that manages playlist clips. It includes a callback that specifies what to do with the playlist when the user clicks on a clip:
$('div.clip').bind("click.playlist", function() {
...
});
I am now planning to add jquery-tabs, and would like to create a second script with a second callback, that specifies what to do with the tab content when the user clicks on a clip:
$('div.clip').bind("click.tabs", function() {
...
});
Here is my question:
When the user clicks on a clip, I want the “click.tabs” callback to execute before the “click.playlist” callback. Does anyone know how to do this?
imho i would do that in an other way:
and
and then fire it up with:
to get the FULL control of event-chaining.