Way to force AJAX reload if bServerSide is false

Way to force AJAX reload if bServerSide is false

CloudStrifeCloudStrife Posts: 6Questions: 0Answers: 0
edited April 2011 in General
Hi,

Simple question... I'm using bServerSide false with an initial fetch using sAjaxSource. Is there an API to force AJAX reload? Not seeing it, only option I see is to destroy the table.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Hi CloudStrife,

    There is a plug-in API function which provides exactly this functionality: http://datatables.net/plug-ins/api#fnReloadAjax .

    Regards,
    Allan
  • CloudStrifeCloudStrife Posts: 6Questions: 0Answers: 0
    Hi Allan,

    Thanks for the info! I added the function to my code. I do have one suggestion (since the plugin appears to be your own):

    On line 11 I thikn the 2nd param should be [], not null. I got an error in my callback but [] fixed it.
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Hi CloudStrife,

    Agreed - thanks for the heads up on that. A legacy issue, but now fixed :-)

    Regards,
    Allan
This discussion has been closed.