YUI 3.x Home -

YUI Library Examples: DataSource Utility: DataSource with Polling

Note: This is YUI 3.x. Looking for YUI 2.x?

DataSource Utility: DataSource with Polling

DataSource's Pollable extension enables polling functionality on all your DataSource instances.

Poll every second for current time:

Include the datasource-pollable extension in your Y.use() statement to add the setInterval(), clearInterval(), and clearAllInterval() methods to all your DataSource instances.

Copyright © 2009 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings