I love cakePHP and jQuery, never a problem with any of them. ANyway I am still a noob. Now I try to implement the progressbar and I am a bit stuck, obviously something super simple is missing out.
As shown on the jQuery site, I implemented the code:
<script>
$(function() {
$( "#progressbar" ).progressbar({
value: 37
});
});
</script>
<div class="demo">
<div id="progressbar"></div>
</div><!-- End demo -->
- Nothing is showing up in my view, not even a default bar or something. I use 2 other UI widgets so the library links work. What do I miss?
- How can I set the value dyamically? I have a php value $value ready in my view.
- Can I create multiple progressbars in my view?
Many thanks!
progressbar plugin deselected when package was prepared. Make sure
you have it, or re-download full jquery-ui with certain theme from
jquery ui website.
That would be:
Add multiple empty div placeholders for each progressbar you need and assign jquery ui progressbar for each of them if they need different values initially, or check this sample code if all sidebars need initial value as 0:
idea is to use the same class name (but different id for sake of later progressbar value changes) to create all sidebars at once without duplicating the code