Problem with graphics.

Luca Servalli
Thu, 28 Feb 2008 16:12:51 -0000

I have a big very big problem...
I have to do big elaboration on client size with a progress bar but i
can''t do because javascript doesn''t have a function like
doevents of
visual basic.
a small sample is this:
-------------------------------------------------
setTimeout(function(){
for (i=0; i<100; i++) {
   for (y=0; y<10000; y++) {
      progressBar2.innerText = y
   }
   $(''button'').fire(''foo:bar'',
''foobarbaz'');
}
}, 1000);

$(''button'').observe(''foo:bar'',
function(evt){
     progressBar1.innerText = Number(progressBar1.innerText) + 1
});
----------------------------------------------
where progressbar1 and progressbar2 is a sample div.
only when then for is finish a see then number in progressBar1 and
progressBar2.. I would like to see 1,2,3,4,5,6....
ecc...
Please help me.........