Object [object DOMWindow] has no method 'fnClearTable'
Object [object DOMWindow] has no method 'fnClearTable'
I am attempting to add the function fnReloadAjax to my page and when doing so I get the error:
Object [object DOMWindow] has no method 'fnClearTable'
Here is what I am adding:
[code]
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback )
{
if ( typeof sNewSource != 'undefined' )
{
oSettings.sAjaxSource = sNewSource;
}
this.fnClearTable( this );
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
$.getJSON( oSettings.sAjaxSource, null, function(json) {
/* Got the data - add it to the table */
for ( var i=0 ; i
Object [object DOMWindow] has no method 'fnClearTable'
Here is what I am adding:
[code]
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback )
{
if ( typeof sNewSource != 'undefined' )
{
oSettings.sAjaxSource = sNewSource;
}
this.fnClearTable( this );
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
$.getJSON( oSettings.sAjaxSource, null, function(json) {
/* Got the data - add it to the table */
for ( var i=0 ; i
This discussion has been closed.
Replies
(function($) {
before and
}(jQuery));
after seems to have fixed this