On 10/27/06, rutherford <[EMAIL PROTECTED]> wrote:
>
> hi guys
> I've been playing about with MochiKit and it's ajax table recently.
> I've tried to add a LoadEvent like:
> addLoadEvent(sortableManager.startUpdater);
>
> and then have startUpdater() simply call:
> window.setInterval(sortableManager.tableUpdater,5000);
This is not how JavaScript works. It does not have bound methods.
window.setInterval(function () { sortableManager.tableUpdater(); }, 5000);
(or with MochiKit):
window.setInterval(method(sortableManager, "tableUpdater"), 5000);
-bob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---