Progress bar on finish help

Hi,

My second try because first time I tried posting I got 'page does not exist'. I would like to thank you for these great tools and I have a question about the progress bar.

I figured out how to use it and I'm also able to use the poll method but I can't get anything to happen when the bar reaches 100%.

I tried:


 var progress_bar = new Control.ProgressBar('progress_bar', {
    interval: 0.15
}
);
progress_bar.start();
if(progress_bar.progress == 100){
    alert('test');
}                   

Also tried:


 var progress_bar = new Control.ProgressBar('progress_bar', afterChange = function(){
alert('test')
}
{
    interval: 0.15
}
);

and the above with a if construction in the function to check for 100%.. But all is not working. Very likely I'm just using it wrong, but javascript is not one of my strong sides..

Can somebody please point me in the right direction?? Thanks!

With best regards, Steven

Posted November 27th, 2007 at 9:00am by steven

var progress_bar = new Control.ProgressBar('progress_bar', {
    interval: 0.15,
    afterChange: function(progress, active){
        alert(progress);
        //active is a boolean which tells you the bar is active or not
    }
});

yes, you were using the script completely wrong=]

Posted November 27th, 2007 at 9:09am by Roland

great thanks! Works perfect

Posted November 28th, 2007 at 4:27am by steven

Login or Register to Post