Re: Problem with graphics.

Gareth Evans
Fri, 29 Feb 2008 04:07:41 -0000

use a periodical executer (which wraps a setInterval) - then you have
something that executes on a timer...
handle your ui updates in this, and then the ui will update because you wont
be stuck in a loop

unless you''re doing crazy heavy work in js, and then the ui will just
lock
up til it''s done (even animated gifs stop animating)

On Fri, Feb 29, 2008 at 10:20 AM, Brian Williams
<brianw1975-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:

> why can''t you use a div, a 1px wide gif image and then make the
image
> "grow" via morph in the loop?
>
>
>
>
> On Thu, Feb 28, 2008 at 12:55 PM, Diodeus
<diodeus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> >
> > I am not sure what you''re asking for.
> >
> > On Feb 28, 11:12 am, Luca Servalli
<luca.serva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > 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.........
> >
> >
>
> >