roland
June 25, 2006, 2:59am
1
Hello,
I want to create a progress bar for the exececution of a particular
function.
I found a solution at http://brainspl.at/articles/tag/background but one
need to create a separate server that communicates the progress of a
job.
Is there anyways to change a global variable or so and have the user see
the execution stage of the function?
I tried playing with Thread but no success because for the page to be
loaded the thread must finish.
Thanks for your time,
Roland
roland
June 25, 2006, 4:31am
2
roland
June 25, 2006, 2:30pm
3
Thanks Jonathan,
brainspl.at is blog of “ezmobius” who proposed the solution with the drb
server.
Actually, I did implement before reading this blog the solution by
“madrobby” but that does not work because Rails does not respond the
ajax call while processing a function.
Thanks for the answer,
Roland
roland
June 26, 2006, 5:30am
4
Thanks a bunch Jonathan. It worked fine. It’s a great resource to have
such functionality.
Roland
roland
June 26, 2006, 1:38am
5
You need to use a multithreaded web server, not Webrick. Lighttpd should
do.
-Jonathan