i have long running task that gets called using jquery ajax. i am using the block ui plugin to show \"loading\". is there anyway i can send progress messages back to the
Well I had a similar situation and I solve it with another approach. It is a VERY UGLY work around, I know that so please do not start stating how bad it is, cause I know it, but it was ok for what I need it.
I'm putting the progress in a file, on the server side. For example, I have process.php called which needs to do a lot of work and it takes a while till it complete, so the user is getting nervous and he close the browser (not too good). So process.php is saving some output to a file on the server. On the page which called the process.php I have a small div, span, or whatever where I want to display the progress, but I suggest div. Each X millisecond, or seconds, I load another script from the server in the div, let's say display_info.php Now display_info.php is reading the file which was outputed by process.php and the content is diplayed in the div.
You have to be careful that the output from process.php has to be unique for each occasion, otherwise you will mess up the info output to the browsers.
Emil