Return to Snippet

Revision: 20061
at November 5, 2009 17:40 by Jamie


Initial Code
$('my_text_field').observe('keyup',function(event){
	var element = this;
	if (this.timer) clearTimeout(element.timer);
	this.timer = setTimeout(function(){
		alert("Nothing Pressed for 1000ms")
	},1000);
	return true;
});

Initial URL

                                

Initial Description

                                

Initial Title
Keypress timer for Prototype

Initial Tags
event

Initial Language
JavaScript