optimized search using ajax and keypress
- by ooo
i have the following code as i want to search a database as a user is typing into a textbox. This code below works fine but it seems a little inefficient as if a user is typing really fast, i am potentially doing many more searches than necessary. So if a user is typing in "sailing"
i am searching on "sail", "saili", "sailin", and "sailing"
i…