Ajax based progress bar
- by Punit
I am developing a progress bar using Ajax. My client side code is working fine, but I have issue at server side. I am using C based CGI.
if(i == inc && pb_inc<=100)
{
fptr = fopen("progress_bar.txt", "w");
fprintf(fptr,"%d", j);
fclose(fptr);
pb_inc++;
}
basically I am increasing progress bar after certain number of bytes. What I see here is that the CGI doesn't let display any data to text file until it has sent all the data to file one by one.
i have referred to http://www.redips.net/javascript/ajax-progress-bar/
Any idea whats happening here?