Is it possible to time-limit ajax searching?
Is it possible to time-limit ajax searching?
daveddorsey
Posts: 2Questions: 0Answers: 0
Hi, apologies if this is addressed in the documentation or on this forum. I searched both and could not find an answer.
I am using DataTables in a project and the client is reporting that when she uses the search feature (I am drawing my data dynamically using ajax) the data refreshes a few times before it settles on a final result set. Now, I know this is due to latency issues with the server she is on. The search routine is firing for each keystroke, and returning results for each keystroke, which is resulting in the experience she is having.
My question is this: Is there a way to do a time delay here? i.e. to instruct DataTables to wait x number of milliseconds after the last input before commencing a search? That way, my customer could type everything she wants to search, DataTables would wait until she had finished typing, and would then search and bring results.
Is this possible?
As always, thank you for such a wonderful piece of software!
I am using DataTables in a project and the client is reporting that when she uses the search feature (I am drawing my data dynamically using ajax) the data refreshes a few times before it settles on a final result set. Now, I know this is due to latency issues with the server she is on. The search routine is firing for each keystroke, and returning results for each keystroke, which is resulting in the experience she is having.
My question is this: Is there a way to do a time delay here? i.e. to instruct DataTables to wait x number of milliseconds after the last input before commencing a search? That way, my customer could type everything she wants to search, DataTables would wait until she had finished typing, and would then search and bring results.
Is this possible?
As always, thank you for such a wonderful piece of software!
This discussion has been closed.
Replies
Allan