Server Side code Pushing Data to client Browser while current thread is busy Comet (programming)
Posted
by
h_power11
on Stack Overflow
See other posts from Stack Overflow
or by h_power11
Published on 2009-09-16T18:53:04Z
Indexed on
2011/01/10
8:53 UTC
Read the original article
Hit count: 150
Hello Friends,
I am writing one simple web page with bunch of textboxes and a button control. Now when user finished editing the values on this text boxes user has to click the button and this button invoke heavily process intensive algorithm on server side code based on the data received from client (Textboxes)
And it could some time takes up to 30 to 45 minutes to complete the whole operation so the current thread is still inside the button click event handler function.
That background task only provides one event, and the web page subscribes to it to get some text data after each stage of processing
I was wandering if there is any way I can keep user up-to-date with what is the current progress on that background task. I have div element to print the current status information
So I am looking for some sort of reverse mechanism then "get" and "post".
I have read some articles on the Comet (programming) but I can't find any easy or definitive answer
Thanks in advance
© Stack Overflow or respective owner