I am trying to use a jQuery UI Slider UI Element in my custom plugin.
(See http://jqueryui.com/slider/)
My html view component has
<div id="slider"></div>
my controller has:
$script=
' $(document).ready(function(){ $( "#slider" ).slider(); });
';
OW::getDocument()->addOnloadScript($script);
Watching the rendered page with firebug, I see that all the jquery UI stuff has been added the div
<div id="sliderl" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
<div class="ui-slider-range ui-slider-range-min ui-widget-header" style="width: 44.4444%;"></div><a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 44.4444%;"></a>
</div>
But still the slider is not showing on the page. What am I missing?
If I add <div id="slider">-</div> I can even see the value for "style="left: xxx%;" changing when clicking and dragging. But the slider is invisible.