fnReloadAjax() only triggers once when called on two different dataTables

fnReloadAjax() only triggers once when called on two different dataTables

tarekftarekf Posts: 1Questions: 0Answers: 0
edited June 2011 in General
First of all, I must applaud you on a fantastic jQuery plugin. This is the 2nd project I use it on and didn't think twice about it.

On to my problem. I have included the fnReloadAjax() plugin and it has been working great. The problem i face is that when I call fnReloadAjax() within a $.ajax() success method, nothing after the first call to fnReloadAjax() triggers. Anything before the fnReloadAjax() call triggers.

The code in question:

[code]
$.ajax({
type: 'POST'
, url: 'admin/adminprocess.php'
, data: dataString
, dataType: 'json'
, async: false
, success: function (resp) {
if (resp.status == 'ok'){
oBannedUsersTable.fnReloadAjax();
oUsersTable.fnReloadAjax();
$(this).dialog('destroy');
$(this).remove();
}
else
alert ("Action not performed. Please try again later");
}//END success function
});
[/code]

Line 9 is executed then nothing else is executed until the function ends. I've tried putting an alert on line 16 and even that doesn't trigger. I have used the fnReloadAjax() function elsewhere, and it works because it is the last statement in that branch before the function ends.

I'm at a loss for how to even go about debugging this. Any help would be appreciated.

dataTables version: 1.8.0
jQuery: 1.5
jQuery-Ui: 1.8.11
Browsers: Firefox 4
Chrome Current

Is there something I'm missing?

Replies

  • leurkleurk Posts: 5Questions: 0Answers: 0
    Hi tarekf.

    This could be related to problem with fnReloadAjax I recently reported at http://datatables.net/forums/comments.php?DiscussionID=5316
  • flashfogflashfog Posts: 17Questions: 0Answers: 0
    Were you able to fix this? I'm having the same issue. It was working for me with previous versions of datatables but when i upgraded to 1.8 I have the same issue.
  • flashfogflashfog Posts: 17Questions: 0Answers: 0
    Nevermind I updated the plugin to the newest code and it works great.
This discussion has been closed.