Hi there,

There's nothing wrong with using setInterval and clearInterval with
MochiKit I think. You can ues it together with partial if you want
send some parameters to your function.

I guess a different way to do this with MochiKit would be:

function someRepeatingStuff(counter, interval) {
    // Do something interesting here, change interval if you feel like it
    MochiKit.Async.callLater(interval, someRepeatingStuff, counter+1, interval);
}

// will call itself in 5 second intervals and incrementing counter:
someRepeatingStuff(0, 5);

Arnar

On 2/19/07, Pearl <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am calling a python function in regular intervals repeatedly. For
> this purpose I am using the javascript function
>
> => setInterval(function, interval)
> To stop this I used
> => clearInterval(function)
>
> What is the mochikit way of doing the same?
>
> Regards
> Pearl
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to