I have a PHP page that shows 1%...2%.....3%..... etc. with an output buffer.
How can I get ajax to detect these changes and make them reflect in the progress bar's width CSS property?
$.ajax({
type: "POST",
url: "iopio.php",
success: function(html){
if (html != '100%') {
$('#mainBar').animate({width:html});
$('#status').text("Working.");
}
}
});