fnOpen Issue
fnOpen Issue
Hi!
So I have a page where single or multiple dataTables are being called in via AJAX.
On page load, when a single table is called in, the fnOpen function works like a charm displaying the duplicate articles below the row when the "+" sign is clicked.
However, on page load when 2 or more tables are called in the fnOpen function does not work and throws this error:
b.aoData[a] is undefined
This also occurs when loading a table via AJAX without a page refresh by using a select dropdown menu.
Here is the code that I am using for the link:
[code]
$('#table_container .dup_toggle').live('click', function () {
var nTr = this.parentNode.parentNode.parentNode;
var docId = $(this).attr('id');
$(this).toggleClass('active');
if (!$(this).hasClass('active') ){
agentTable.fnClose( nTr );
} else {
agentTable.fnOpen( nTr, mw.mnews.agents.getDuplicates(data, tableId, agentTable, nTr, docId, agentId), 'duplicates' );
}
});
[/code]
Any ideas? Thanks in advance!!
Brad
So I have a page where single or multiple dataTables are being called in via AJAX.
On page load, when a single table is called in, the fnOpen function works like a charm displaying the duplicate articles below the row when the "+" sign is clicked.
However, on page load when 2 or more tables are called in the fnOpen function does not work and throws this error:
b.aoData[a] is undefined
This also occurs when loading a table via AJAX without a page refresh by using a select dropdown menu.
Here is the code that I am using for the link:
[code]
$('#table_container .dup_toggle').live('click', function () {
var nTr = this.parentNode.parentNode.parentNode;
var docId = $(this).attr('id');
$(this).toggleClass('active');
if (!$(this).hasClass('active') ){
agentTable.fnClose( nTr );
} else {
agentTable.fnOpen( nTr, mw.mnews.agents.getDuplicates(data, tableId, agentTable, nTr, docId, agentId), 'duplicates' );
}
});
[/code]
Any ideas? Thanks in advance!!
Brad
This discussion has been closed.