jQWidgets Forums

jQuery UI Widgets Forums Editors ProgressBar SOLUTION: Progress Bar Update Timer

This topic contains 0 replies, has 1 voice, and was last updated by  AllThumbsGeek 12 years ago.

Viewing 1 post (of 1 total)
  • Author
  • SOLUTION: Progress Bar Update Timer #20144

    All,

    I searched long and hard for a progress bar value update based on a timer. My need is that I have a process I run with PHP popen and sadly it does not provide any updates until it completes. However, it is fairly predictable in the amount  of time it takes to complete based on some determinate parameters, such as sizeof(array) for example. What I needed was a time to run the progress bar to pacify impatient humans.

    var pvalue = 0;

    function time1(f){
    var t1 = 0;
    setInterval(function() {
    f.call(t1);
    }, 5000);
    }
    time1(function(){
    pvalue++;
    $("#pbar").jqxProgressBar({ value: pvalue });
    });

    Done and done.

    I hope this helps someone else.

    ATG

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.