Real Time Progress Indicator

Rourofsnovorm

New Member
I am trying to get the real time progress indicator.In the code snippet below,i am trying to set the width of DIV on the basis of the Number of Items retrieve from the Web Service Call Back Function.\[code\] for (i = 0; i < data.length; i++) { table += '<tr>'; table += '<td>' + data.ItemId + '</td>'; table += '<td></td>'; table += '<td>' + data.Name + '</td>'; table += '<td>' + data.Unit + '</td>'; table += '<td><input type=text value='http://stackoverflow.com/questions/9833708/+ data.Quantity +'></td>'; table += '<td>' + data.Brands + '</td>'; table += '<td><img border=0 src=http://stackoverflow.com/questions/images/Delete_icon.gif></td>'; table += '</tr>'; $('#divProgressIndicator').width((100 * (i / data.length)) + '%'); }\[/code\]As shown in the code above,after the for loop is executed i only see the divProgressIndicator filled with the background color and I am not able to see the progress.Can I achieve this in a for loop or i need to use some thing else.Regards
 
Top