Click to See Complete Forum and Search --> : page redrawing


chuvak
07-03-2003, 04:57 PM
Hi,

when I change something in the page what is the exact mechanism of redrawing?

For example I have a function that makes B to appear instead of A , D instead of C etc.

function zzz {
A.style.display="none";
B.style.display="block";
C.style.display="none";
D.style.display="block";
....
}

Suppose I have several changes in the DOM tree like that.
Can a page start redrawing while not all changes have yet been made? Is it possible to make the browser wait till I am done with modifying DOM tree? I have the impression that the browser rerenders the page 2 or more times while my function is executing, because I see little fickers, not all changes seem to occur at once.

thanks in advance

Khalid Ali
07-04-2003, 01:48 AM
al the changes should happen sequenctially..if thats what you are asking..

A.style.display="none";
will be done first and then the next ones...usually it should hapen pretty darn fast that it would give you an illusion that all is happening at the same time...