How can I distinguish between first Load of table and Load as a result of calling fnReloadAjax?

How can I distinguish between first Load of table and Load as a result of calling fnReloadAjax?

daniel_rdaniel_r Posts: 460Questions: 4Answers: 67
edited October 2012 in General
Hi
I'm using datatables 1.9.3 with the following configuration [code] "bProcessing": true, "sAjaxSource": 'myservlet', [/code]
I was wondering how can I distinguish on the server side if the table is being loaded cause of manually calling fnReloadAjax (after adding a row for example) , or its the first time the table is being loaded or user hit F5/Ctrl + F5

Thanks ahead,

Daniel.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    One option might be to use fnServerParams and send counter to the server on each request. Then it would be 0 on the firs toad, and increment by one each time. A page reload would obviously reset the counter.

    Allan
This discussion has been closed.