oSettings is null when reloading a page that contains a datatable

oSettings is null when reloading a page that contains a datatable

hdlhdl Posts: 1Questions: 0Answers: 0
edited January 2012 in DataTables 1.8
If I click on different links that load page with datatable, I often obtain a javascript error "OSettings is null".

I Fixed this problem on jquery.dataTables.js 1.8.2 by checking oSettings in the fnAddData function like this :

[code]
/* Find settings from table node */
var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
if (oSettings != null) {
...
}
return aiReturn;

[/code]

Now it works fine.
Please report this in your future release.

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Can you link me to a demo page showing the problem please? oSettings should never be null there.

    Allan
This discussion has been closed.