How to put multiple jquery dataTables in one page?

I'm so sorry, I neglect the docs there. But thank you. :) – garcon1986 Nov 24 '09 at 13:42 It doesn't work with server side data.

– garcon1986 Nov 24 '09 at 14:18 Maybe I'm dense but how is this doc describing how to enable rendering multiple tables? – Derek B. Jan 18 at 6:56 $(document).

Ready(function() { $('. DataTable').dataTable(); }); - AFAIK - you should put same class for all tables in question. – Eimantas Jan 18 at 7:53 The examples show static data, not from server.

I think it can't be used in my case. Thanks. – garcon1986 Jan 18 at 14:44.

It is possible with server side processing. I have it working in a number of locations in my application. You just need to follow the example code for the server side processing multiple times... $(document).

Ready(function() { $('#example'). DataTable( { "bProcessing": true, "bServerSide": true, "sAjaxSource": "../examples_support/server_processing. Php" } ); } ); replacing #example with #id-of-your-table and "sAjaxSource": "../examples_support/server_processing.

Php" with "sAjaxSource": "url/to/your/server/side/script". My guess is that you used the . DataTable selector from the multiple tables example.

Which will apply the same setup to all tables with the dataTable class.

If you have multiple datatables on the single page - check if you are using the following from the examples "fnServerData": fnDataTablesPipeline this caches the data from the first call; if the second datatable uses the same function it will see that data has already been fetched and not make the ajax call to retrieve its data. And so you will not receive data to your second(nth) datatable.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions