Filter problem with sending too many requests
Filter problem with sending too many requests
The filter has the following problematic behavior. When the user types in the filter box the following take place:
Key event(s) is/are registered for the filter input.
The callback that initiates the AJAX is instantly executed (always happens for first event).
The callback is always delayed after a pre-defined amount of time, such as 200ms (multiple events firing at once cause some chaos).
Subsequent key presses may or may not trigger the AJAX instantly (if you type really fast, you can avoid invoking the callback).
Currently, if you type a single character, the callback will be fired twice--once instantly and once delayed.
If you type multiple characters, you are guaranteed to have the callback fire twice like above but will likely have multiple other callback invocations in between.
Is this a known issue and if so, is there a fix for it?
Answers
I've not heard of this problem being reported. Is this with server side processing? Are you using
searchDelay
? What is the callback you are referring to. Can you post a link to your page or a test case replicating the issue so we can see what you are doing and help debug?https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin