Server-side polling timeout

Server-side polling timeout

lexalexa Posts: 3Questions: 0Answers: 0
edited October 2012 in Feature requests
Hello,

I'm using DataTables in connection with server-side filtering.
So, every time my search field is changed a request is sent to the server.
For example, if I have "cat" in the search field and I want to search for "dog" and I delete "cat" letter by letter and then type in the "dog" it will produce 7 requests to the server: "cat", "ca", "c", empty filter request, "d", "do", "dog".
So, we would get 6 useless responses before we get what we really ask for.
It would be great if the request wouold be sent if only the search text was modified earlier then 1 second (configurable) ago.

Is it possible to get this functionality with the current state of the software?

Thank you.

Replies

  • vexvex Posts: 30Questions: 0Answers: 0
    I think what you are looking for is this plugin: http://www.datatables.net/plug-ins/api#fnSetFilteringDelay

    Regards,
    Fredrik
This discussion has been closed.