Monday, February 01, 2010

Javascript Prototype: En example of periodical event broadcaster with ajax

The class below executes script.php every 60 seconds. After successful execution, it throws an event "jobs:updated" with JSON data returned from script.php.