R
Richard A. DeVenezia
I have a function that will update a divs innerHTML with the result of a
long running loop. I would like to update the div prior to running the loop
so the person knows it is doing something.
i.e.
function doit () {
mydiv.innerHTML = 'working...';
.... long running loop generates html in variable s
mydiv.innerHTML = s
}
Doing things this way I don't see working..., just the results of the loop
after several seconds.
How might I update mydiv prior to running the loop ?
Thanks.
long running loop. I would like to update the div prior to running the loop
so the person knows it is doing something.
i.e.
function doit () {
mydiv.innerHTML = 'working...';
.... long running loop generates html in variable s
mydiv.innerHTML = s
}
Doing things this way I don't see working..., just the results of the loop
after several seconds.
How might I update mydiv prior to running the loop ?
Thanks.