fnReloadAjax() only triggers once when called on two different dataTables
fnReloadAjax() only triggers once when called on two different dataTables
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?
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?
This discussion has been closed.
Replies
This could be related to problem with fnReloadAjax I recently reported at http://datatables.net/forums/comments.php?DiscussionID=5316