This plugin provides the following three main features:
- Global Scheduler Class
- jQuery Global Scheduler Object
There is a global scheduler object instanciated for the jQuery object which can be used with the global
jQuery.schedule(), jQuery.reschedule() and jQuery.cancel() functions.
- jQuery Object Scheduling Method
All jQuery objects are extended with a schedule() method which is a convinience wrapper allowing one to use the “jQuery Global Scheduler Object” to schedule a task for the current jQuery object.
The following is a trivial example use of the schedule() method on jQuery objects. On click on the text “TEST BUTTON”, it changes its color to blue and after 2 seconds it changes it to red. Additionally, a value 42 is passed through to the scheduled task which “prints” it into a another element for demonstration purposes.
The jQuery plugin can be downloaded from the File Repository area.