Slider and change event via bind

Slider and change event via bind


Hello
I'm trying to binds a handler to the sliders 'change' event. But i
cant make it work, can anyone tell my what I'm doing wrong? It works
if is done via the 'change' option when creating the slider, but not
via bind.
A sample page to illustrate what I'm doing (with jquery-ui 1.6.rc6):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <title>A Slider</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
        <link href="/js/jquery-ui/themes/blacktie/ui.all.css" media="screen,
projection" rel="stylesheet" type="text/css" >
        <script type="text/javascript" src="/js/jquery/
jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui/1.6.rc6/
jquery.ui.all.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$("#slider").slider()
.bind('slide', function(event, ui)
{ console.log("slide " + ui.value); })
.bind('change', function(event, ui)
{ console.log("change " + ui.value); });
});
</script>
</head>
<body><div id="slider"></div>
</body>
Regards
Viktor