ok. so color me stupid, but why are you calling the function from within
itself?




On Mon, Feb 11, 2008 at 4:04 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>
> im so S.....
>
> upp: function(val,pourcent,k,z) {
>
>
> if(!k)var k=0;
>  if(k<=val){
>  $(pourcent).update(k+'%');
>  if(!z) var z=0;
>  while(z<100)
>  ++z;
>  setTimeout(function(){this.upp(val,pourcent,k,z);}.bind(this), 50);
> ++k;
>  }
> },
> wonder if there s no clean way to do this
> ;)
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to