Object [object DOMWindow] has no method 'fnClearTable'

Object [object DOMWindow] has no method 'fnClearTable'

sifuhallsifuhall Posts: 20Questions: 0Answers: 0
edited March 2010 in General
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

Replies

  • sifuhallsifuhall Posts: 20Questions: 0Answers: 0
    adding

    (function($) {

    before and

    }(jQuery));

    after seems to have fixed this
This discussion has been closed.