code for adding a description-text to the progress panel (if you need)
<style>
.ui-progressbar-text{
width:100%;
position:relative;
top:-17px;
text-align:center;
}
</style>
<script>
$(document).ready(function() {
$("#progressbar").progressbar()
.append('<div class="ui-progressbar-text" ></div>');
</script>
script wo will request a text file every 200 ms:
window.setInterval(function(){
$.get('currenttask.txt', function(data) {
$('#progressbar')
.progressbar({value: data.split(";")[0]})
.find('.ui.progressbar-text')
.html(data.split(";")[1])
.end()
;
});
},200);
text file:
--begin of file
"30;extracting"
--end of file
php- script , , .