server side generated table

server side generated table

henselerhenseler Posts: 5Questions: 0Answers: 0
edited May 2010 in General
Instead of using the server_processing.php which generates a JSON I directly generate a datatables compliant table from the server with php. Works fine, with jEditable as well, so I'd better not touch it.

But I'm curious (as in "kills the cat"): is there any disadvantage in doing it that way? Put differently: what is the advantage of using JSON?

Timmo

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi Timmo,

    So when you load the table each time do you re-initialise the DataTable (i.e. $(...).dataTable(); )? It's probably not the most efficient way of doing it in terms of processing time - but there is nothing wrong with it as such - as you note, it works :-)

    Regards,
    Allan
  • henselerhenseler Posts: 5Questions: 0Answers: 0
    Hi Allan,

    Thanks for your quick reply. Yes I retrieve from the server and reinitialise dataTables each time. Indeed not the most efficient way but for the time being I can live with that. Going forward i will need to change that.

    Thanks for this brilliant peace of work!

    Timmo
This discussion has been closed.