problem with ajax tabs in jquery-ui 1.8 and jquery 1.5
I try to use ajax tabs based on the example from the documentation as shown in
http://jqueryui.com/demos/tabs/#ajax.
I'm using jquery-ui 1.8 in combination with jquery 1.4.4 it works, but it's not working when using jquery 1.5 (which is included in debian wheezy).
Is this a bug or has anything changed in the way to using ajax tabs ?
My source code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="/usr/share/javascript/jquery-ui/themes/le-frog/jquery.ui.all.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery UI Tabs Example</title>
</head>
<body>
<div id="myTabs">
<ul>
<li><a href="#0"><span>Tab 1</span></a></li>
<li><a href="#1"><span>Tab 2</span></a></li>
<li><a href="tabContent.html"><span>Tab 3</span></a></li>
</ul>
<div id="0">This is the content panel linked to the first tab, it is shown by default.</div>
<div id="1">This content is linked to the second tab and will be shown when its tab is clicked.</div>
</div>
<script type="text/javascript" src="/usr/share/javascript/jquery/jquery-1.4.4.js"></script>
<!--
<script type="text/javascript" src="/usr/share/javascript/jquery/jquery.js"></script>
-->
<script type="text/javascript" src="/usr/share/javascript/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="/usr/share/javascript/jquery-ui/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="/usr/share/javascript/jquery-ui/ui/jquery.ui.tabs.js"></script>
<script type="text/javascript" src="/usr/share/javascript/jquery-ui/ui/jquery.ui.widget.js"></script>
<script type="text/javascript">
$(function()
{
$("#myTabs").tabs( { ajaxOptions: { error: function(xhr, status, index, anchor)
{
$(anchor.hash).html("Couldn't load this tab.");
}
}
});
});
</script>
</body>
</html>