tabs (...open links in the current tab instead of leaving the page)

tabs (...open links in the current tab instead of leaving the page)


Hello,
First of all, my first experiences with jquery UI have been awesome.
Your example at http://docs.jquery.com/UI/Tabs#...open_links_in_the_current_tab_instead_of_leaving_the_page
for opening links in the current tab recommends doing this.
$('#example').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});
This works, but only for the first page. Meaning this
* I click Tab A which loads a.html with ajax (just an href to the
other page as in examples).
* Above works and the content of a.html has a link to b.html which I
click
* Above works and loads the page in current tab without page reload.
b.html has an href back to a.html.
* When I click above link, it fails and links to b.html without
staying in current tab or current page?
It's almost as if I have to tell jquery to reload the above. Like it
doesn't recognize the above example after one clivk. Thanks in advans