http/html/ajax: show result before site is completely processed

Posted by chris on Stack Overflow See other posts from Stack Overflow or by chris
Published on 2010-04-01T21:20:37Z Indexed on 2010/04/01 21:23 UTC
Read the original article Hit count: 337

Filed under:
|
|
|
|

hi!

I am looking for a way to show in a webapp in front of a task a wait-message and after it hide the message. The task is running a longer time. I dont know if it is possible at all.

The problem is, so far I can see, that the site will be returned to the users browser AFTER the task is completed because the task is part of the site as a inline code replaces by the webserver interpreter (no matter if php, perl or whatever).

The only solution I can imagine is to parallel the task with threads or processes and requery the state with ajax in the website.

Any idea to do it less complex? Thanks for help!

regards chris

© Stack Overflow or respective owner

Related posts about html

Related posts about AJAX