Re: [jQuery] DOM changes takes effects only after function is done processing

2009-11-16 Thread Michel Belleville
Well for a start I wouldn't use a this kind of pause() trick if I were you, it's pretty brutal suff looping along until time has passed will likely freeze your interface and that's a bad thing. You'd probably be better off with a setTimeout() which would delegate exécution of a callback after the t

[jQuery] DOM changes takes effects only after function is done processing

2009-11-16 Thread nowotny
Hello. At first I want to say I know it's not strictly jQuery issue but there are many Javascript skilled people here that may know best so I hope you forgive me... ;) Ok, so here's a problem: I have a following function in which I change some DOM elements: function ttt(){ $('#test').html('Test