How to create Server-side Progress indicator in Javascript

Posted by Eli on Stack Overflow See other posts from Stack Overflow or by Eli
Published on 2010-03-14T11:14:36Z Indexed on 2010/03/14 11:25 UTC
Read the original article Hit count: 371

Filed under:
|
|
|
|

Hey Guys, I want to create a section in my site, where a user has a few simple update buttons.

Each of these update buttons will be going to the server, and will do a long crunching behind the scene.

While the server crunches data, I want the user to have a some kind of progress indicator, like progress bar or textual percentage.

I'm using jQuery as my javascript library, and CodeIgniter (PHP) as the server-side framework, if it's important...

What I was thinking about is using PHP's flush() function to report progress status to jQuery, but I'm not sure that jQuery's ajax functions are reading the output before it's complete...

So any advice/explanation would be useful and helpful!

Thanks :)

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript