Uncaught TypeError: G is undefined.

Uncaught TypeError: G is undefined.

mrpaomrpao Posts: 1Questions: 0Answers: 0
edited April 2014 in General
I've added custom sorting to a table that has a list of name, date, place and actions.
When page loading, i got an error message: Uncaught TypeError: G is undefined.

Here is my code:
[code]
var oTable = $('#table').dataTable({
"aoColumns": [
null, null, null,
{"bSortable": false}
],
"oLanguage": {
"sUrl": "<?php echo base_url() ?>/js/dataTables.language.txt"
}});

oTable.fnSort([[1, 'desc']]);
[/code]

the language run normally, but the sorting error.
i've tried, if code [code] "oLanguage": { "sUrl": "<?php echo base_url() ?>/js/dataTables.language.txt" } [/code] is removed, there's no error caught.
why i've got error if i'm using "oLanguage" ??

thank you

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Please link to a test case: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
This discussion has been closed.