Ajax based progress bar

Posted by Punit on Stack Overflow See other posts from Stack Overflow or by Punit
Published on 2010-05-28T19:05:52Z Indexed on 2010/05/28 19:12 UTC
Read the original article Hit count: 317

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about AJAX