This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
Unobtrusive JavaScript solution for polling in a Rails application | |
Introduction: | |
Add a polling-placeholder wrapper div to any partial and add a data attribute | |
named poll that should be equal to "true" until you want to stop polling. | |
The default polling frequency will be used unless you provide an "interval" data | |
attribute which should be the number of milliseconds to use for the interval. |