Problem using scientific sort plugin

Problem using scientific sort plugin

jnedzeljnedzel Posts: 28Questions: 4Answers: 0
edited November 2012 in DataTables 1.9
I'm having problems using the scientific sorting plugin. I'm using DataTables 1.9.0. My table uses an Ajax datasource, and the column is defined using mDataProp:

{ "mDataProp" "pValue", "sType" : "scientific"}

The table creates fine, but when I try to sort, I get the following error in the error console:

Timestamp: 11/2/12 2:03:06 PM
Error: TypeError: r[(h ? h : "string") + "-" + o[c][1]] is not a function
Source File: http://localhost:8080/portal/media/data-tables-1.9.0/js/jquery.dataTables.min.js
Line: 84

What am I doing wrong? Is there some plugin file that I have to include to use the scientific plugin? Is this plugin not available in 1.9.2? Is my column definition wrong?

Thanks,

Jared

Replies

  • jnedzeljnedzel Posts: 28Questions: 4Answers: 0
    I figured it out. I had to put the plugin code in the document.ready function.
This discussion has been closed.