How to abort fnReloadAjax() ??

How to abort fnReloadAjax() ??

michael.griffithmichael.griffith Posts: 7Questions: 0Answers: 0
edited December 2010 in General
Hi,
I am using the fnReloadAjax() function located at http://www.datatables.net/plug-ins/api to reload my datatable. The DataTable is actually part of a JQuery plugin that the user can hide if they press the esc key. The problem lies in when the datatable is refreshing the data from ajax source, and the user presses esc which calls $(this).slideToggle(); on my plug-in. This results in a a json is null error in the fnReloadAjax(). If I test json for null, the error then bubbles up to the dataTables fnServerData() method....

What is the best way to abort or ignore the fact that the datatable may have been hidden or destroyed before the result is returned from the server?

Thanks in advance for any/all replies.

Griff
This discussion has been closed.