Archive for September, 2007

Handy JavaScript tip of the day: functions can be used as array indexes

Friday, September 7th, 2007

When I hook into text fields, I add a “bounce” delay to avoid processing overhead. When a key is pressed, I start a timer set for 1-2 seconds, which calls my processing method. If the timer is running, it’s reset. The upshot is that processing does not occur until 1-2s after the user stops typing. [...]