<script>
//
$( document ).ready(function() {
//Set the slider properties
$(function(){
var slidervalue = $('#slidervalue');
$("#slider").slider({
max: 100,
min: -100,
orientation :"horizontal",
slide: function(event, ui) {
slidervalue.html(ui.value);
b4j_raiseEvent("update_slidervalue", {value: ui.value});
}
});
});
$("#slider").mouseleave( function() {
$("#slider").slider( "value", 0 );
} );
//B4J Connect to the B4J server
b4j_connect("/ws");
});
</script>