I have a loop which runs for several minutes and need to give the user some feedback about the progress.
My straightforward solution was displaying dots in a textarea like this (just the gist of the code):
<form name="choice">
<textarea rows=25 cols=20 name="OutputArea"></textarea>
</form>
var completemsg
for (...)
{
//.. do some work ...
completemsg += ("."
choice.OutputArea.value = completemsg;
}
The problem is, that the content of OutputArea is not updated before the loop is finished. I tried to display the progress asynchronously but this failed too.
I am not insisting on dots in a textarea, an input box with a counter would do as well.
Help would be very appreciated.
My straightforward solution was displaying dots in a textarea like this (just the gist of the code):
<form name="choice">
<textarea rows=25 cols=20 name="OutputArea"></textarea>
</form>
var completemsg
for (...)
{
//.. do some work ...
completemsg += ("."
choice.OutputArea.value = completemsg;
}
The problem is, that the content of OutputArea is not updated before the loop is finished. I tried to display the progress asynchronously but this failed too.
I am not insisting on dots in a textarea, an input box with a counter would do as well.
Help would be very appreciated.