Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start setTimeout when stopped typing 1

Status
Not open for further replies.

snowboardr

Programmer
Joined
Feb 22, 2002
Messages
1,401
Location
PH
How could I start a timer after the user stops typing for a few seconds? Because I want to run an ajax check on the field, but i don't want to do on every keyup event....

Jason
 
Every keyup event start a timer, and every keydown, stop it. Them if the timer fires, you know they've been idle for while.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thats a great idea! thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top