Archive

You are viewing all articles posted in august 2007

Recent articles can be found on the homepage.

Javascript Periodical Executer

posted on 03 August 2007 (03:46 PM)

When writing Javascript, you sometimes want to execute a certain function repeatedly (for instance, when creating a bit of animation, or when pinging for new messages in an AJAX chat application).

This involves calls to setTimeout or setInterval and usually repeatedly checking some conditions.

For simple, periodically executed calls to your custom functions, I have now written an easy extension to the Function prototype.

Read more

Preferences

These settings will be saved for your convenience.