Uncaught TypeError: G is undefined.
Uncaught TypeError: G is undefined.
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
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
This discussion has been closed.
Replies