Load table from HTML but search with AJAX

Load table from HTML but search with AJAX

fire015fire015 Posts: 1Questions: 0Answers: 0
edited April 2011 in General
Is it possible to configure data tables to use an HTML table to show data, but if a user types in a search it uses AJAX to find the results.

I basically want it to search more data than is visible in the table. If there's another way to do this without making the whole thing AJAX please let me know.

Replies

  • allanallan Posts: 63,520Questions: 1Answers: 10,473 Site admin
    You could use server-side processing perhaps? Or ajax sourced data. In DataTables 1.8 (currently in development) there is a new deferred loading option called iDeferLoading - which when set will cause DataTables to read the source HTML and display that, but then use the server sourced data for anything else. It might be worth a go! The dev version is available from http://datatables.net/download . You just need to set iDeferLoading to the number of rows that are in the whole table.

    Allan
This discussion has been closed.